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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javax.ws.rs.ext.WriterInterceptorContext
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MessageBodyWriterContextFacade
(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.MediaType
getType()
void
proceed()
void
removeAttribute
(String name) void
setAnnotations
(Annotation[] annotations) void
setAttribute
(String name, Object value) void
void
setGenericType
(Type genericType) void
setMediaType
(javax.ws.rs.core.MediaType mediaType) void
void
-
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:
getType
in interfaceMessageBodyWriterContext
-
setType
- Specified by:
setType
in interfaceMessageBodyWriterContext
-
getGenericType
- Specified by:
getGenericType
in interfaceMessageBodyWriterContext
-
setGenericType
- Specified by:
setGenericType
in interfaceMessageBodyWriterContext
-
getAnnotations
- Specified by:
getAnnotations
in interfaceMessageBodyWriterContext
-
setAnnotations
- Specified by:
setAnnotations
in interfaceMessageBodyWriterContext
-
getMediaType
public javax.ws.rs.core.MediaType getMediaType()- Specified by:
getMediaType
in interfaceMessageBodyWriterContext
-
setMediaType
public void setMediaType(javax.ws.rs.core.MediaType mediaType) - Specified by:
setMediaType
in interfaceMessageBodyWriterContext
-
getHeaders
- Specified by:
getHeaders
in interfaceMessageBodyWriterContext
-
getAttribute
Description copied from interface:MessageBodyWriterContext
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.- Specified by:
getAttribute
in interfaceMessageBodyWriterContext
- Returns:
-
setAttribute
- Specified by:
setAttribute
in interfaceMessageBodyWriterContext
-
removeAttribute
- Specified by:
removeAttribute
in interfaceMessageBodyWriterContext
-
getEntity
- Specified by:
getEntity
in interfaceMessageBodyWriterContext
-
setEntity
- Specified by:
setEntity
in interfaceMessageBodyWriterContext
-
getOutputStream
- Specified by:
getOutputStream
in interfaceMessageBodyWriterContext
-
setOutputStream
- Specified by:
setOutputStream
in interfaceMessageBodyWriterContext
-
proceed
- Specified by:
proceed
in interfaceMessageBodyWriterContext
- Throws:
IOException
javax.ws.rs.WebApplicationException
-