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.WriterInterceptorContextwriterInterceptorContext
-
Constructor Summary
Constructors Modifier Constructor Description privateMessageBodyWriterContextFacade(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.ObjectgetAttribute(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.ObjectgetEntity()java.lang.reflect.TypegetGenericType()javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object>getHeaders()javax.ws.rs.core.MediaTypegetMediaType()java.io.OutputStreamgetOutputStream()java.lang.ClassgetType()voidproceed()voidremoveAttribute(java.lang.String name)voidsetAnnotations(java.lang.annotation.Annotation[] annotations)voidsetAttribute(java.lang.String name, java.lang.Object value)voidsetEntity(java.lang.Object entity)voidsetGenericType(java.lang.reflect.Type genericType)voidsetMediaType(javax.ws.rs.core.MediaType mediaType)voidsetOutputStream(java.io.OutputStream os)voidsetType(java.lang.Class type)
-
-
-
Method Detail
-
getType
public java.lang.Class getType()
- Specified by:
getTypein interfaceMessageBodyWriterContext
-
setType
public void setType(java.lang.Class type)
- Specified by:
setTypein interfaceMessageBodyWriterContext
-
getGenericType
public java.lang.reflect.Type getGenericType()
- Specified by:
getGenericTypein interfaceMessageBodyWriterContext
-
setGenericType
public void setGenericType(java.lang.reflect.Type genericType)
- Specified by:
setGenericTypein interfaceMessageBodyWriterContext
-
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceMessageBodyWriterContext
-
setAnnotations
public void setAnnotations(java.lang.annotation.Annotation[] annotations)
- 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
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
- Specified by:
getHeadersin interfaceMessageBodyWriterContext
-
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
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
public void setAttribute(java.lang.String name, java.lang.Object value)- Specified by:
setAttributein interfaceMessageBodyWriterContext
-
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttributein interfaceMessageBodyWriterContext
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntityin interfaceMessageBodyWriterContext
-
setEntity
public void setEntity(java.lang.Object entity)
- Specified by:
setEntityin interfaceMessageBodyWriterContext
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceMessageBodyWriterContext
-
setOutputStream
public void setOutputStream(java.io.OutputStream os)
- Specified by:
setOutputStreamin interfaceMessageBodyWriterContext
-
proceed
public void proceed() throws java.io.IOException, javax.ws.rs.WebApplicationException- Specified by:
proceedin interfaceMessageBodyWriterContext- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
-