org.jclouds.http
Class HttpMessage

java.lang.Object
  extended by org.jclouds.http.internal.PayloadEnclosingImpl
      extended by 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

Nested Class Summary
static class HttpMessage.Builder<T extends HttpMessage>
           
 
Field Summary
protected  com.google.common.collect.Multimap<String,String> headers
           
 
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
 
Constructor Summary
HttpMessage(Payload payload, com.google.common.collect.Multimap<String,String> headers)
           
 
Method Summary
static HttpMessage.Builder<? extends HttpMessage> 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()
           
 HttpMessage.Builder<? extends HttpMessage> toBuilder()
           
 String toString()
           
 
Methods inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
getPayload, setPayload, setPayload, setPayload, setPayload, setPayload
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

headers

protected final com.google.common.collect.Multimap<String,String> headers
Constructor Detail

HttpMessage

public HttpMessage(@Nullable
                   Payload payload,
                   com.google.common.collect.Multimap<String,String> headers)
Method Detail

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.