org.jboss.resteasy.client.core
Class ClientMessageBodyWriterContext
java.lang.Object
org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl
org.jboss.resteasy.client.core.ClientMessageBodyWriterContext
- All Implemented Interfaces:
- MessageBodyWriterContext
public class ClientMessageBodyWriterContext
- extends MessageBodyWriterContextImpl
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Constructor Summary |
ClientMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors,
MessageBodyWriter writer,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream outputStream,
Map<String,Object> attributes)
|
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 |
ClientMessageBodyWriterContext
public ClientMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors,
MessageBodyWriter writer,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream outputStream,
Map<String,Object> attributes)
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 © 2011. All Rights Reserved.