public class ClientMessageBodyWriterContext extends MessageBodyWriterContextImpl
annotations, entity, genericType, headers, index, interceptors, mediaType, outputStream, type, writer
Constructor and Description |
---|
ClientMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors,
MessageBodyWriter writer,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream outputStream,
Map<String,Object> attributes) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
getAnnotations, getEntity, getGenericType, getHeaders, getMediaType, getOutputStream, getType, proceed, setAnnotations, setEntity, setGenericType, setMediaType, setOutputStream, setType
public ClientMessageBodyWriterContext(MessageBodyWriterInterceptor[] interceptors, MessageBodyWriter writer, Object entity, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream outputStream, Map<String,Object> attributes)
public Object getAttribute(String attribute)
MessageBodyWriterContext
public void removeAttribute(String name)
Copyright © 2018 JBoss by Red Hat. All rights reserved.