private static class WriterInterceptorRegistry.MessageBodyWriterContextFacade extends java.lang.Object implements MessageBodyWriterContext
| Modifier and Type | Field and Description |
|---|---|
protected javax.ws.rs.ext.WriterInterceptorContext |
writerInterceptorContext |
| Modifier | Constructor and Description |
|---|---|
private |
MessageBodyWriterContextFacade(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext) |
| Modifier and Type | Method and 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) |
protected final javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext
private MessageBodyWriterContextFacade(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext)
public java.lang.Class getType()
getType in interface MessageBodyWriterContextpublic void setType(java.lang.Class type)
setType in interface MessageBodyWriterContextpublic java.lang.reflect.Type getGenericType()
getGenericType in interface MessageBodyWriterContextpublic void setGenericType(java.lang.reflect.Type genericType)
setGenericType in interface MessageBodyWriterContextpublic java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface MessageBodyWriterContextpublic void setAnnotations(java.lang.annotation.Annotation[] annotations)
setAnnotations in interface MessageBodyWriterContextpublic javax.ws.rs.core.MediaType getMediaType()
getMediaType in interface MessageBodyWriterContextpublic void setMediaType(javax.ws.rs.core.MediaType mediaType)
setMediaType in interface MessageBodyWriterContextpublic javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
getHeaders in interface MessageBodyWriterContextpublic java.lang.Object getAttribute(java.lang.String attribute)
MessageBodyWriterContextgetAttribute in interface MessageBodyWriterContextpublic void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface MessageBodyWriterContextpublic void removeAttribute(java.lang.String name)
removeAttribute in interface MessageBodyWriterContextpublic java.lang.Object getEntity()
getEntity in interface MessageBodyWriterContextpublic void setEntity(java.lang.Object entity)
setEntity in interface MessageBodyWriterContextpublic java.io.OutputStream getOutputStream()
getOutputStream in interface MessageBodyWriterContextpublic void setOutputStream(java.io.OutputStream os)
setOutputStream in interface MessageBodyWriterContextpublic void proceed()
throws java.io.IOException,
javax.ws.rs.WebApplicationException
proceed in interface MessageBodyWriterContextjava.io.IOExceptionjavax.ws.rs.WebApplicationException