org.apache.isis.viewer.restfulobjects.applib
Class RestfulResponse<T>
java.lang.Object
org.apache.isis.viewer.restfulobjects.applib.RestfulResponse<T>
public class RestfulResponse<T>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
of
public static RestfulResponse<JsonRepresentation> of(javax.ws.rs.core.Response response)
ofT
public static <T extends JsonRepresentation> RestfulResponse<T> ofT(javax.ws.rs.core.Response response)
getStatus
public RestfulResponse.HttpStatusCode getStatus()
getEntity
public T getEntity()
throws org.codehaus.jackson.JsonParseException,
org.codehaus.jackson.map.JsonMappingException,
IOException
- Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException
getHeader
public <V> V getHeader(RestfulResponse.Header<V> header)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.