org.jboss.resteasy.core.interception
Class ServerMessageBodyWriterContext

java.lang.Object
  extended by org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl
      extended by org.jboss.resteasy.core.interception.ServerMessageBodyWriterContext
All Implemented Interfaces:
MessageBodyWriterContext

public class ServerMessageBodyWriterContext
extends MessageBodyWriterContextImpl

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
 
Fields inherited from class org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl
annotations, entity, genericType, headers, index, interceptors, mediaType, outputStream, type, writer
 
Constructor Summary
ServerMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors, MessageBodyWriter writer, Object entity, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream outputStream, HttpRequest request)
           
 
Method Summary
 Object getAttribute(String attribute)
          Allows you to pass values back and forth between interceptors On the server side, this is the HttpRequest attributes, on the client side, this is the ClientRequest/ClientResponse attributes.
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl
getAnnotations, getEntity, getGenericType, getHeaders, getMediaType, getOutputStream, getType, proceed, setAnnotations, setEntity, setGenericType, setMediaType, setOutputStream, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerMessageBodyWriterContext

public ServerMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors,
                                      MessageBodyWriter writer,
                                      Object entity,
                                      Class type,
                                      Type genericType,
                                      Annotation[] annotations,
                                      MediaType mediaType,
                                      MultivaluedMap<String,Object> headers,
                                      OutputStream outputStream,
                                      HttpRequest request)
Method Detail

getAttribute

public Object getAttribute(String attribute)
Description copied from interface: MessageBodyWriterContext
Allows you to pass values back and forth between interceptors On the server side, this is the HttpRequest attributes, on the client side, this is the ClientRequest/ClientResponse attributes.

Returns:

setAttribute

public void setAttribute(String name,
                         Object value)

removeAttribute

public void removeAttribute(String name)


Copyright © 2012. All Rights Reserved.