org.apache.clerezza.jaxrs.extensions
Class MethodResponse

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

public abstract class MethodResponse
extends javax.ws.rs.core.Response

This class extends Response to contain a reference to the method generating this response (or an object wrapped therein) so that an implementation can base selection of the MessageBodyWriter basing on annotations/declared return type of this method.

Author:
rbn

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
 
Constructor Summary
MethodResponse()
           
 
Method Summary
abstract  Method getGeneratingMethod()
          Return the method generating the response or the entity wrapped therein.
 
Methods inherited from class javax.ws.rs.core.Response
created, fromResponse, getEntity, getMetadata, getStatus, 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
 

Constructor Detail

MethodResponse

public MethodResponse()
Method Detail

getGeneratingMethod

public abstract Method getGeneratingMethod()
Return the method generating the response or the entity wrapped therein.

Returns:
the method


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