org.jboss.resteasy.client.core
Class ClientMessageBodyReaderContext

java.lang.Object
  extended by org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl
      extended by org.jboss.resteasy.client.core.ClientMessageBodyReaderContext
All Implemented Interfaces:
MessageBodyReaderContext

public class ClientMessageBodyReaderContext
extends MessageBodyReaderContextImpl

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
 
Fields inherited from class org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl
annotations, genericType, headers, index, inputStream, interceptors, mediaType, reader, type
 
Constructor Summary
ClientMessageBodyReaderContext(MessageBodyReaderInterceptor[] interceptors, MessageBodyReader reader, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream inputStream, Map<String,Object> attributes)
           
 
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.MessageBodyReaderContextImpl
getAnnotations, getGenericType, getHeaders, getInputStream, getMediaType, getType, proceed, setAnnotations, setGenericType, setInputStream, setMediaType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientMessageBodyReaderContext

public ClientMessageBodyReaderContext(MessageBodyReaderInterceptor[] interceptors,
                                      MessageBodyReader reader,
                                      Class type,
                                      Type genericType,
                                      Annotation[] annotations,
                                      MediaType mediaType,
                                      MultivaluedMap<String,String> headers,
                                      InputStream inputStream,
                                      Map<String,Object> attributes)
Method Detail

getAttribute

public Object getAttribute(String attribute)
Description copied from interface: MessageBodyReaderContext
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.