Class WriterInterceptorRegistry.MessageBodyWriterContextFacade
java.lang.Object
org.jboss.resteasy.core.interception.WriterInterceptorRegistry.MessageBodyWriterContextFacade
- All Implemented Interfaces:
MessageBodyWriterContext
- Enclosing class:
WriterInterceptorRegistry
private static class WriterInterceptorRegistry.MessageBodyWriterContextFacade
extends Object
implements MessageBodyWriterContext
- Version:
- $Revision: 1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javax.ws.rs.ext.WriterInterceptorContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMessageBodyWriterContextFacade(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(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.javax.ws.rs.core.MediaTypegetType()voidproceed()voidremoveAttribute(String name) voidsetAnnotations(Annotation[] annotations) voidsetAttribute(String name, Object value) voidvoidsetGenericType(Type genericType) voidsetMediaType(javax.ws.rs.core.MediaType mediaType) voidvoid
-
Field Details
-
writerInterceptorContext
protected final javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext
-
-
Constructor Details
-
MessageBodyWriterContextFacade
private MessageBodyWriterContextFacade(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceMessageBodyWriterContext
-
setType
- Specified by:
setTypein interfaceMessageBodyWriterContext
-
getGenericType
- Specified by:
getGenericTypein interfaceMessageBodyWriterContext
-
setGenericType
- Specified by:
setGenericTypein interfaceMessageBodyWriterContext
-
getAnnotations
- Specified by:
getAnnotationsin interfaceMessageBodyWriterContext
-
setAnnotations
- Specified by:
setAnnotationsin interfaceMessageBodyWriterContext
-
getMediaType
public javax.ws.rs.core.MediaType getMediaType()- Specified by:
getMediaTypein interfaceMessageBodyWriterContext
-
setMediaType
public void setMediaType(javax.ws.rs.core.MediaType mediaType) - Specified by:
setMediaTypein interfaceMessageBodyWriterContext
-
getHeaders
- Specified by:
getHeadersin interfaceMessageBodyWriterContext
-
getAttribute
Description copied from interface:MessageBodyWriterContextAllows 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.- Specified by:
getAttributein interfaceMessageBodyWriterContext- Returns:
-
setAttribute
- Specified by:
setAttributein interfaceMessageBodyWriterContext
-
removeAttribute
- Specified by:
removeAttributein interfaceMessageBodyWriterContext
-
getEntity
- Specified by:
getEntityin interfaceMessageBodyWriterContext
-
setEntity
- Specified by:
setEntityin interfaceMessageBodyWriterContext
-
getOutputStream
- Specified by:
getOutputStreamin interfaceMessageBodyWriterContext
-
setOutputStream
- Specified by:
setOutputStreamin interfaceMessageBodyWriterContext
-
proceed
- Specified by:
proceedin interfaceMessageBodyWriterContext- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-