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 java.lang.Object implements MessageBodyWriterContext
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.ws.rs.ext.WriterInterceptorContext
writerInterceptorContext
-
Constructor Summary
Constructors Modifier Constructor Description private
MessageBodyWriterContextFacade(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.annotation.Annotation[]
getAnnotations()
java.lang.Object
getAttribute(java.lang.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.java.lang.Object
getEntity()
java.lang.reflect.Type
getGenericType()
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object>
getHeaders()
javax.ws.rs.core.MediaType
getMediaType()
java.io.OutputStream
getOutputStream()
java.lang.Class
getType()
void
proceed()
void
removeAttribute(java.lang.String name)
void
setAnnotations(java.lang.annotation.Annotation[] annotations)
void
setAttribute(java.lang.String name, java.lang.Object value)
void
setEntity(java.lang.Object entity)
void
setGenericType(java.lang.reflect.Type genericType)
void
setMediaType(javax.ws.rs.core.MediaType mediaType)
void
setOutputStream(java.io.OutputStream os)
void
setType(java.lang.Class type)
-
-
-
Method Detail
-
getType
public java.lang.Class getType()
- Specified by:
getType
in interfaceMessageBodyWriterContext
-
setType
public void setType(java.lang.Class type)
- Specified by:
setType
in interfaceMessageBodyWriterContext
-
getGenericType
public java.lang.reflect.Type getGenericType()
- Specified by:
getGenericType
in interfaceMessageBodyWriterContext
-
setGenericType
public void setGenericType(java.lang.reflect.Type genericType)
- Specified by:
setGenericType
in interfaceMessageBodyWriterContext
-
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfaceMessageBodyWriterContext
-
setAnnotations
public void setAnnotations(java.lang.annotation.Annotation[] annotations)
- 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
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
- Specified by:
getHeaders
in interfaceMessageBodyWriterContext
-
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
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
public void setAttribute(java.lang.String name, java.lang.Object value)
- Specified by:
setAttribute
in interfaceMessageBodyWriterContext
-
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttribute
in interfaceMessageBodyWriterContext
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfaceMessageBodyWriterContext
-
setEntity
public void setEntity(java.lang.Object entity)
- Specified by:
setEntity
in interfaceMessageBodyWriterContext
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interfaceMessageBodyWriterContext
-
setOutputStream
public void setOutputStream(java.io.OutputStream os)
- Specified by:
setOutputStream
in interfaceMessageBodyWriterContext
-
proceed
public void proceed() throws java.io.IOException, javax.ws.rs.WebApplicationException
- Specified by:
proceed
in interfaceMessageBodyWriterContext
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
-
-