public interface MessageBodyWriterContext
Modifier and Type | Method and Description |
---|---|
Annotation[] |
getAnnotations() |
Object |
getAttribute(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.
|
Object |
getEntity() |
Type |
getGenericType() |
MultivaluedMap<String,Object> |
getHeaders() |
MediaType |
getMediaType() |
OutputStream |
getOutputStream() |
Class |
getType() |
void |
proceed() |
void |
removeAttribute(String name) |
void |
setAnnotations(Annotation[] annotations) |
void |
setAttribute(String name,
Object value) |
void |
setEntity(Object entity) |
void |
setGenericType(Type genericType) |
void |
setMediaType(MediaType mediaType) |
void |
setOutputStream(OutputStream os) |
void |
setType(Class type) |
Object getEntity()
void setEntity(Object entity)
Class getType()
void setType(Class type)
Type getGenericType()
void setGenericType(Type genericType)
Annotation[] getAnnotations()
void setAnnotations(Annotation[] annotations)
MediaType getMediaType()
void setMediaType(MediaType mediaType)
MultivaluedMap<String,Object> getHeaders()
OutputStream getOutputStream()
void setOutputStream(OutputStream os)
Object getAttribute(String attribute)
void removeAttribute(String name)
void proceed() throws IOException, WebApplicationException
IOException
WebApplicationException
Copyright © 2018 JBoss by Red Hat. All rights reserved.