Package org.jclouds.http
Class HttpResponse
- java.lang.Object
-
- org.jclouds.http.internal.PayloadEnclosingImpl
-
- org.jclouds.http.HttpMessage
-
- org.jclouds.http.HttpResponse
-
- All Implemented Interfaces:
PayloadEnclosing
public class HttpResponse extends HttpMessage
Represents a response produced fromHttpCommandExecutorService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpResponse.Builder<T extends HttpResponse.Builder<T>>
-
Field Summary
-
Fields inherited from class org.jclouds.http.HttpMessage
headers
-
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpResponse(int statusCode, String message, com.google.common.collect.Multimap<String,String> headers, Payload payload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpResponse.Builder<?>
builder()
boolean
equals(Object obj)
String
getMessage()
int
getStatusCode()
String
getStatusLine()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
HttpResponse.Builder<?>
toBuilder()
-
Methods inherited from class org.jclouds.http.HttpMessage
getFirstHeaderOrNull, getHeaders, toString
-
Methods inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
-
-
-
Method Detail
-
builder
public static HttpResponse.Builder<?> builder()
-
toBuilder
public HttpResponse.Builder<?> toBuilder()
- Overrides:
toBuilder
in classHttpMessage
-
getStatusCode
public int getStatusCode()
-
getStatusLine
public String getStatusLine()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classHttpMessage
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classHttpMessage
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
- Overrides:
string
in classHttpMessage
-
-