com.netflix.client
Interface IResponse


public interface IResponse

Response interface for the client framework.


Method Summary
 javax.ws.rs.core.MultivaluedMap<?,?> getHeaders()
           
 java.lang.Object getPayload()
          Returns the raw entity if available from the response
 java.net.URI getRequestedURI()
          Return the Request URI that generated this response
 boolean hasPayload()
          A "peek" kinda API.
 boolean isSuccess()
           
 

Method Detail

getPayload

java.lang.Object getPayload()
                            throws ClientException
Returns the raw entity if available from the response

Throws:
ClientException

hasPayload

boolean hasPayload()
A "peek" kinda API. Use to check if your service returned a response with an Entity


isSuccess

boolean isSuccess()
Returns:
true if the response is deemed success, for example, 200 response code for http protocol.

getRequestedURI

java.net.URI getRequestedURI()
Return the Request URI that generated this response


getHeaders

javax.ws.rs.core.MultivaluedMap<?,?> getHeaders()
Returns:
Headers if any in the response.