io.airlift.http.client
Class FullJsonResponseHandler.JsonResponse<T>

java.lang.Object
  extended by io.airlift.http.client.FullJsonResponseHandler.JsonResponse<T>
Enclosing class:
FullJsonResponseHandler<T>

public static class FullJsonResponseHandler.JsonResponse<T>
extends Object


Constructor Summary
FullJsonResponseHandler.JsonResponse(int statusCode, String statusMessage, com.google.common.collect.ListMultimap<String,String> headers)
           
FullJsonResponseHandler.JsonResponse(int statusCode, String statusMessage, com.google.common.collect.ListMultimap<String,String> headers, T value)
           
 
Method Summary
 String getHeader(String name)
           
 com.google.common.collect.ListMultimap<String,String> getHeaders()
           
 int getStatusCode()
           
 String getStatusMessage()
           
 T getValue()
           
 boolean hasValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FullJsonResponseHandler.JsonResponse

public FullJsonResponseHandler.JsonResponse(int statusCode,
                                            String statusMessage,
                                            com.google.common.collect.ListMultimap<String,String> headers)

FullJsonResponseHandler.JsonResponse

public FullJsonResponseHandler.JsonResponse(int statusCode,
                                            String statusMessage,
                                            com.google.common.collect.ListMultimap<String,String> headers,
                                            T value)
Method Detail

getStatusCode

public int getStatusCode()

getStatusMessage

public String getStatusMessage()

getHeader

public String getHeader(String name)

getHeaders

public com.google.common.collect.ListMultimap<String,String> getHeaders()

hasValue

public boolean hasValue()

getValue

public T getValue()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012 Airlift. All Rights Reserved.