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 MessageBodyWriterContext
public void setType(java.lang.Class type)
setType
in interface MessageBodyWriterContext
public java.lang.reflect.Type getGenericType()
getGenericType
in interface MessageBodyWriterContext
public void setGenericType(java.lang.reflect.Type genericType)
setGenericType
in interface MessageBodyWriterContext
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface MessageBodyWriterContext
public void setAnnotations(java.lang.annotation.Annotation[] annotations)
setAnnotations
in interface MessageBodyWriterContext
public javax.ws.rs.core.MediaType getMediaType()
getMediaType
in interface MessageBodyWriterContext
public void setMediaType(javax.ws.rs.core.MediaType mediaType)
setMediaType
in interface MessageBodyWriterContext
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
getHeaders
in interface MessageBodyWriterContext
public java.lang.Object getAttribute(java.lang.String attribute)
MessageBodyWriterContext
getAttribute
in interface MessageBodyWriterContext
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface MessageBodyWriterContext
public void removeAttribute(java.lang.String name)
removeAttribute
in interface MessageBodyWriterContext
public java.lang.Object getEntity()
getEntity
in interface MessageBodyWriterContext
public void setEntity(java.lang.Object entity)
setEntity
in interface MessageBodyWriterContext
public java.io.OutputStream getOutputStream()
getOutputStream
in interface MessageBodyWriterContext
public void setOutputStream(java.io.OutputStream os)
setOutputStream
in interface MessageBodyWriterContext
public void proceed() throws java.io.IOException, javax.ws.rs.WebApplicationException
proceed
in interface MessageBodyWriterContext
java.io.IOException
javax.ws.rs.WebApplicationException