com.eclipsesource.restfuse.internal
Class ResponseImpl
java.lang.Object
com.eclipsesource.restfuse.internal.ResponseImpl
- All Implemented Interfaces:
- Response
public class ResponseImpl
- extends java.lang.Object
- implements Response
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseImpl
public ResponseImpl(HttpRequest request)
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