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
javax.ws.rs.core.MediaType getMediaType()
setMediaType
void setMediaType(javax.ws.rs.core.MediaType mediaType)
getHeaders
javax.ws.rs.core.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,
javax.ws.rs.WebApplicationException
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.