org.jboss.resteasy.spi.interception
Interface MessageBodyWriterContext
- All Known Implementing Classes:
- ClientMessageBodyWriterContext, MessageBodyWriterContextImpl, ServerMessageBodyWriterContext
public interface MessageBodyWriterContext
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
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 © 2011. All Rights Reserved.