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(HttpRequest request)
           
 
Method Summary
 java.lang.String getBody()
           
<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()
           
 java.lang.String getUrl()
           
 boolean hasBody()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseImpl

public ResponseImpl(HttpRequest request)
Method Detail

getBody

public java.lang.String getBody()
Specified by:
getBody in interface Response

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

getUrl

public java.lang.String getUrl()
Specified by:
getUrl in interface Response

hasBody

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