org.apache.isis.viewer.restfulobjects.applib
Class RestfulResponse<T>

java.lang.Object
  extended by org.apache.isis.viewer.restfulobjects.applib.RestfulResponse<T>

public class RestfulResponse<T>
extends Object


Nested Class Summary
static class RestfulResponse.Header<X>
           
static class RestfulResponse.HttpStatusCode
           
 
Method Summary
 T getEntity()
           
<V> V
getHeader(RestfulResponse.Header<V> header)
           
 RestfulResponse.HttpStatusCode getStatus()
           
static RestfulResponse<JsonRepresentation> of(javax.ws.rs.core.Response response)
           
static
<T extends JsonRepresentation>
RestfulResponse<T>
ofT(javax.ws.rs.core.Response response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.