RestfulResponse

API

RestfulResponse.java
class RestfulResponse<T> {
  RestfulResponse<JsonRepresentation> of(Response response)
  RestfulResponse<T> ofT(Response response)
  HttpStatusCode getStatus()
  T getEntity()
  V getHeader(Header<V> header)
  RestfulResponse<Q> wraps(Class<Q> cls)     (1)
  String toString()
}
1 wraps(Class)

Convenience that recasts this response as wrapping some other representation.

Members

wraps(Class)

Convenience that recasts this response as wrapping some other representation.

This would typically be as the results of a content type being an error rather than a representation returned on success.