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, wait
getAttribute, removeAttribute, setAttribute
protected 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 MessageBodyWriterContext
public void setEntity(Object entity)
setEntity
in interface MessageBodyWriterContext
public Class getType()
getType
in interface MessageBodyWriterContext
public void setType(Class type)
setType
in interface MessageBodyWriterContext
public Type getGenericType()
getGenericType
in interface MessageBodyWriterContext
public void setGenericType(Type genericType)
setGenericType
in interface MessageBodyWriterContext
public Annotation[] getAnnotations()
getAnnotations
in interface MessageBodyWriterContext
public void setAnnotations(Annotation[] annotations)
setAnnotations
in interface MessageBodyWriterContext
public MediaType getMediaType()
getMediaType
in interface MessageBodyWriterContext
public void setMediaType(MediaType mediaType)
setMediaType
in interface MessageBodyWriterContext
public MultivaluedMap<String,Object> getHeaders()
getHeaders
in interface MessageBodyWriterContext
public OutputStream getOutputStream()
getOutputStream
in interface MessageBodyWriterContext
public void setOutputStream(OutputStream outputStream)
setOutputStream
in interface MessageBodyWriterContext
public void proceed() throws IOException, WebApplicationException
proceed
in interface MessageBodyWriterContext
IOException
WebApplicationException
Copyright © 2012. All Rights Reserved.