org.jclouds.http
Class HttpResponse

java.lang.Object
  extended by org.jclouds.http.internal.PayloadEnclosingImpl
      extended by org.jclouds.http.HttpMessage
          extended by org.jclouds.http.HttpResponse
All Implemented Interfaces:
PayloadEnclosing

public class HttpResponse
extends HttpMessage

Represents a response produced from HttpCommandExecutorService

Author:
Adrian Cole

Nested Class Summary
static class HttpResponse.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.HttpMessage
headers
 
Fields inherited from class org.jclouds.http.internal.PayloadEnclosingImpl
payload
 
Constructor Summary
HttpResponse(int statusCode, String message, Payload payload)
           
HttpResponse(int statusCode, String message, Payload payload, com.google.common.collect.Multimap<String,String> headers)
           
 
Method Summary
static HttpResponse.Builder builder()
           
 boolean equals(Object obj)
           
 String getMessage()
           
 int getStatusCode()
           
 String getStatusLine()
           
 int hashCode()
           
 HttpResponse.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class org.jclouds.http.HttpMessage
getFirstHeaderOrNull, getHeaders
 
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
 

Constructor Detail

HttpResponse

public HttpResponse(int statusCode,
                    String message,
                    @Nullable
                    Payload payload)

HttpResponse

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

builder

public static HttpResponse.Builder builder()

getStatusCode

public int getStatusCode()

getMessage

public String getMessage()

toString

public String toString()
Overrides:
toString in class HttpMessage

getStatusLine

public String getStatusLine()

toBuilder

public HttpResponse.Builder toBuilder()
Overrides:
toBuilder in class HttpMessage

hashCode

public int hashCode()
Overrides:
hashCode in class HttpMessage

equals

public boolean equals(Object obj)
Overrides:
equals in class HttpMessage


Copyright © 2009-2012 jclouds. All Rights Reserved.