org.jboss.resteasy.specimpl
Class ResponseImpl

java.lang.Object
  extended by javax.ws.rs.core.Response
      extended by org.jboss.resteasy.specimpl.ResponseImpl

public class ResponseImpl
extends Response

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.ws.rs.core.Response
Response.ResponseBuilder, Response.Status
 
Constructor Summary
ResponseImpl()
           
ResponseImpl(java.lang.Object entity, int status, Headers<java.lang.Object> metadata, NewCookie[] newCookies)
           
 
Method Summary
 java.lang.annotation.Annotation[] getAnnotations()
           
 java.lang.Object getEntity()
          Return the response entity.
 java.lang.reflect.Type getGenericType()
           
 MultivaluedMap<java.lang.String,java.lang.Object> getMetadata()
          Get metadata associated with the response as a map.
 NewCookie[] getNewCookies()
           
 int getStatus()
          Get the status code associated with the response.
 void setAnnotations(java.lang.annotation.Annotation[] annotations)
           
 void setEntity(java.lang.Object entity)
           
 void setGenericType(java.lang.reflect.Type genericType)
           
 void setMetadata(MultivaluedMap<java.lang.String,java.lang.Object> metadata)
           
 void setNewCookies(NewCookie[] newCookies)
           
 void setStatus(int status)
           
 
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
 

Constructor Detail

ResponseImpl

public ResponseImpl(java.lang.Object entity,
                    int status,
                    Headers<java.lang.Object> metadata,
                    NewCookie[] newCookies)

ResponseImpl

public ResponseImpl()
Method Detail

getEntity

public java.lang.Object getEntity()
Description copied from class: Response
Return the response entity. The response will be serialized using a MessageBodyWriter for either the class of the entity or, in the case of GenericEntity, the value of GenericEntity.getRawType().

Specified by:
getEntity in class Response
Returns:
an object instance or null if there is no entity
See Also:
MessageBodyWriter

getStatus

public int getStatus()
Description copied from class: Response
Get the status code associated with the response.

Specified by:
getStatus in class Response
Returns:
the response status code or -1 if the status was not set.

getMetadata

public MultivaluedMap<java.lang.String,java.lang.Object> getMetadata()
Description copied from class: Response
Get metadata associated with the response as a map. The returned map may be subsequently modified by the JAX-RS runtime. Values will be serialized using a RuntimeDelegate.HeaderDelegate if one is available via RuntimeDelegate.createHeaderDelegate(java.lang.Class) for the class of the value or using the values toString method if a header delegate is not available.

Specified by:
getMetadata in class Response
Returns:
response metadata as a map

getNewCookies

public NewCookie[] getNewCookies()

setEntity

public void setEntity(java.lang.Object entity)

setStatus

public void setStatus(int status)

setMetadata

public void setMetadata(MultivaluedMap<java.lang.String,java.lang.Object> metadata)

setNewCookies

public void setNewCookies(NewCookie[] newCookies)

getAnnotations

public java.lang.annotation.Annotation[] getAnnotations()

setAnnotations

public void setAnnotations(java.lang.annotation.Annotation[] annotations)

getGenericType

public java.lang.reflect.Type getGenericType()

setGenericType

public void setGenericType(java.lang.reflect.Type genericType)


Copyright © 2009. All Rights Reserved.