org.jboss.resteasy.spi.interception
Interface MessageBodyWriterContext

All Known Implementing Classes:
ClientMessageBodyWriterContext, MessageBodyWriterContextImpl, ServerMessageBodyWriterContext

public interface MessageBodyWriterContext

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.
 Object getEntity()
           
 Type getGenericType()
           
 MultivaluedMap<String,Object> getHeaders()
           
 MediaType getMediaType()
           
 OutputStream getOutputStream()
           
 Class getType()
           
 void proceed()
           
 void removeAttribute(String name)
           
 void setAnnotations(Annotation[] annotations)
           
 void setAttribute(String name, Object value)
           
 void setEntity(Object entity)
           
 void setGenericType(Type genericType)
           
 void setMediaType(MediaType mediaType)
           
 void setOutputStream(OutputStream os)
           
 void setType(Class type)
           
 

Method Detail

getEntity

Object getEntity()

setEntity

void setEntity(Object entity)

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,Object> getHeaders()

getOutputStream

OutputStream getOutputStream()

setOutputStream

void setOutputStream(OutputStream os)

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

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


Copyright © 2012. All Rights Reserved.