Package org.jclouds.http
Class HttpMessage
- java.lang.Object
-
- org.jclouds.http.internal.PayloadEnclosingImpl
-
- org.jclouds.http.HttpMessage
-
- All Implemented Interfaces:
PayloadEnclosing
- Direct Known Subclasses:
HttpRequest
,HttpResponse
public class HttpMessage extends PayloadEnclosingImpl
Represents a request that can be executed withinHttpCommandExecutorService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpMessage.Builder<T extends HttpMessage.Builder<T>>
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.collect.Multimap<String,String>
headers
-
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpMessage(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 HttpMessage.Builder<?>
builder()
boolean
equals(Object obj)
String
getFirstHeaderOrNull(String string)
try to get the value, then try as lowercase.com.google.common.collect.Multimap<String,String>
getHeaders()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
HttpMessage.Builder<?>
toBuilder()
String
toString()
-
Methods inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
getPayload, resetPayload, setPayload, setPayload, setPayload, setPayload, setPayload, setPayload
-
-
-
-
Method Detail
-
builder
public static HttpMessage.Builder<?> builder()
-
toBuilder
public HttpMessage.Builder<?> toBuilder()
-
getFirstHeaderOrNull
public String getFirstHeaderOrNull(String string)
try to get the value, then try as lowercase.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPayloadEnclosingImpl
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classPayloadEnclosingImpl
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-