org.jboss.resteasy.core.interception
Class ServerMessageBodyWriterContext
java.lang.Object
org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl
org.jboss.resteasy.core.interception.ServerMessageBodyWriterContext
- All Implemented Interfaces:
- MessageBodyWriterContext
public class ServerMessageBodyWriterContext
- extends MessageBodyWriterContextImpl
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Constructor Summary |
ServerMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors,
MessageBodyWriter writer,
java.lang.Object entity,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream outputStream,
HttpRequest request)
|
Method Summary |
java.lang.Object |
getAttribute(java.lang.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(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.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 |
ServerMessageBodyWriterContext
public ServerMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors,
MessageBodyWriter writer,
java.lang.Object entity,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream outputStream,
HttpRequest request)
getAttribute
public java.lang.Object getAttribute(java.lang.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(java.lang.String name,
java.lang.Object value)
removeAttribute
public void removeAttribute(java.lang.String name)
Copyright © 2011. All Rights Reserved.