public abstract class MessageBodyWriterContextImpl extends Object implements MessageBodyWriterContext
| Modifier and Type | Field and Description |
|---|---|
protected Annotation[] |
annotations |
protected Object |
entity |
protected Type |
genericType |
protected MultivaluedMap<String,Object> |
headers |
protected int |
index |
protected MessageBodyWriterInterceptor[] |
interceptors |
protected MediaType |
mediaType |
protected OutputStream |
outputStream |
protected Class |
type |
protected MessageBodyWriter |
writer |
| Constructor and Description |
|---|
MessageBodyWriterContextImpl(MessageBodyWriterInterceptor[] interceptors,
MessageBodyWriter writer,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
Annotation[] |
getAnnotations() |
Object |
getEntity() |
Type |
getGenericType() |
MultivaluedMap<String,Object> |
getHeaders() |
MediaType |
getMediaType() |
OutputStream |
getOutputStream() |
Class |
getType() |
void |
proceed() |
void |
setAnnotations(Annotation[] annotations) |
void |
setEntity(Object entity) |
void |
setGenericType(Type genericType) |
void |
setMediaType(MediaType mediaType) |
void |
setOutputStream(OutputStream outputStream) |
void |
setType(Class type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, removeAttribute, setAttributeprotected MessageBodyWriterInterceptor[] interceptors
protected MessageBodyWriter writer
protected Object entity
protected Class type
protected Type genericType
protected Annotation[] annotations
protected MediaType mediaType
protected MultivaluedMap<String,Object> headers
protected OutputStream outputStream
protected int index
public MessageBodyWriterContextImpl(MessageBodyWriterInterceptor[] interceptors, MessageBodyWriter writer, Object entity, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream outputStream)
public Object getEntity()
getEntity in interface MessageBodyWriterContextpublic void setEntity(Object entity)
setEntity in interface MessageBodyWriterContextpublic Class getType()
getType in interface MessageBodyWriterContextpublic void setType(Class type)
setType in interface MessageBodyWriterContextpublic Type getGenericType()
getGenericType in interface MessageBodyWriterContextpublic void setGenericType(Type genericType)
setGenericType in interface MessageBodyWriterContextpublic Annotation[] getAnnotations()
getAnnotations in interface MessageBodyWriterContextpublic void setAnnotations(Annotation[] annotations)
setAnnotations in interface MessageBodyWriterContextpublic MediaType getMediaType()
getMediaType in interface MessageBodyWriterContextpublic void setMediaType(MediaType mediaType)
setMediaType in interface MessageBodyWriterContextpublic MultivaluedMap<String,Object> getHeaders()
getHeaders in interface MessageBodyWriterContextpublic OutputStream getOutputStream()
getOutputStream in interface MessageBodyWriterContextpublic void setOutputStream(OutputStream outputStream)
setOutputStream in interface MessageBodyWriterContextpublic void proceed()
throws IOException,
WebApplicationException
proceed in interface MessageBodyWriterContextIOExceptionWebApplicationExceptionCopyright © 2014. All Rights Reserved.