com.eclipsesource.restfuse.internal
Class ResponseImpl

java.lang.Object
  extended by com.eclipsesource.restfuse.internal.ResponseImpl
All Implemented Interfaces:
Response

public class ResponseImpl
extends java.lang.Object
implements Response


Constructor Summary
ResponseImpl(com.sun.jersey.api.client.ClientResponse clientResponse)
           
 
Method Summary
<T> T
getBody(java.lang.Class<T> type)
           
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
           
 int getStatus()
           
 MediaType getType()
           
 boolean hasBody()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseImpl

public ResponseImpl(com.sun.jersey.api.client.ClientResponse clientResponse)
Method Detail

getBody

public <T> T getBody(java.lang.Class<T> type)
Specified by:
getBody in interface Response

getHeaders

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
Specified by:
getHeaders in interface Response

getStatus

public int getStatus()
Specified by:
getStatus in interface Response

getType

public MediaType getType()
Specified by:
getType in interface Response

hasBody

public boolean hasBody()
Specified by:
hasBody in interface Response