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,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream outputStream,
HttpRequest request)
|
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,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream outputStream,
HttpRequest request)
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.