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 within HttpCommandExecutorService
- Author:
- Adrian Cole
headers
protected final com.google.common.collect.Multimap<String,String> headers
HttpMessage
public HttpMessage(@Nullable
Payload payload,
com.google.common.collect.Multimap<String,String> headers)
builder
public static HttpMessage.Builder<? extends HttpMessage> builder()
getHeaders
public com.google.common.collect.Multimap<String,String> getHeaders()
getFirstHeaderOrNull
public String getFirstHeaderOrNull(String string)
- try to get the value, then try as lowercase.
toBuilder
public HttpMessage.Builder<? extends HttpMessage> toBuilder()
hashCode
public int hashCode()
- Overrides:
hashCode
in class PayloadEnclosingImpl
equals
public boolean equals(Object obj)
- Overrides:
equals
in class PayloadEnclosingImpl
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2011 jclouds. All Rights Reserved.