org.jboss.resteasy.spi.interception
Interface MessageBodyReaderContext

All Known Implementing Classes:
ClientMessageBodyReaderContext, MessageBodyReaderContextImpl, ServerMessageBodyReaderContext

public interface MessageBodyReaderContext

Version:
$Revision: 1 $
Author:
Bill Burke

Method Summary
 Annotation[] getAnnotations()
           
 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.
 Type getGenericType()
           
 MultivaluedMap<String,String> getHeaders()
           
 InputStream getInputStream()
           
 MediaType getMediaType()
           
 Class getType()
           
 Object proceed()
           
 void removeAttribute(String name)
           
 void setAnnotations(Annotation[] annotations)
           
 void setAttribute(String name, Object value)
           
 void setGenericType(Type genericType)
           
 void setInputStream(InputStream is)
           
 void setMediaType(MediaType mediaType)
           
 void setType(Class type)
           
 

Method Detail

getType

Class getType()

setType

void setType(Class type)

getGenericType

Type getGenericType()

setGenericType

void setGenericType(Type genericType)

getAnnotations

Annotation[] getAnnotations()

setAnnotations

void setAnnotations(Annotation[] annotations)

getMediaType

MediaType getMediaType()

setMediaType

void setMediaType(MediaType mediaType)

getHeaders

MultivaluedMap<String,String> getHeaders()

getInputStream

InputStream getInputStream()

setInputStream

void setInputStream(InputStream is)

getAttribute

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.

Returns:

setAttribute

void setAttribute(String name,
                  Object value)

removeAttribute

void removeAttribute(String name)

proceed

Object proceed()
               throws IOException,
                      WebApplicationException
Throws:
IOException
WebApplicationException


Copyright © 2011. All Rights Reserved.