org.apache.clerezza.triaxrs
Class ProcessableResponse

java.lang.Object
  extended by javax.ws.rs.core.Response
      extended by org.apache.clerezza.jaxrs.extensions.MethodResponse
          extended by org.apache.clerezza.triaxrs.ProcessableResponse

public class ProcessableResponse
extends org.apache.clerezza.jaxrs.extensions.MethodResponse

Keeps all information needed to process a response

Author:
mir

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.ws.rs.core.Response
javax.ws.rs.core.Response.ResponseBuilder, javax.ws.rs.core.Response.Status
 
Method Summary
static ProcessableResponse createProcessableResponse(Object methodReturnValue, Annotation[] annotations, Set<javax.ws.rs.core.MediaType> methodProducibleTypes, Type genericMethodReturnType, Method invokedMethod)
           
 Annotation[] getAnnotations()
           
 Object getEntity()
           
 Method getGeneratingMethod()
           
 javax.ws.rs.core.MultivaluedMap<String,Object> getMetadata()
           
 Set<javax.ws.rs.core.MediaType> getMethodProducibleTypes()
           
 int getStatus()
           
 
Methods inherited from class javax.ws.rs.core.Response
created, fromResponse, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, temporaryRedirect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createProcessableResponse

public static ProcessableResponse createProcessableResponse(Object methodReturnValue,
                                                            Annotation[] annotations,
                                                            Set<javax.ws.rs.core.MediaType> methodProducibleTypes,
                                                            Type genericMethodReturnType,
                                                            Method invokedMethod)

getAnnotations

public Annotation[] getAnnotations()

getMethodProducibleTypes

public Set<javax.ws.rs.core.MediaType> getMethodProducibleTypes()

getEntity

public Object getEntity()
Specified by:
getEntity in class javax.ws.rs.core.Response

getStatus

public int getStatus()
Specified by:
getStatus in class javax.ws.rs.core.Response

getMetadata

public javax.ws.rs.core.MultivaluedMap<String,Object> getMetadata()
Specified by:
getMetadata in class javax.ws.rs.core.Response

getGeneratingMethod

public Method getGeneratingMethod()
Specified by:
getGeneratingMethod in class org.apache.clerezza.jaxrs.extensions.MethodResponse


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.