org.jboss.resteasy.core.interception
Class MessageBodyWriterContextImpl
java.lang.Object
org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl
- All Implemented Interfaces:
- MessageBodyWriterContext
- Direct Known Subclasses:
- ClientMessageBodyWriterContext, ServerMessageBodyWriterContext
public abstract class MessageBodyWriterContextImpl
- extends Object
- implements MessageBodyWriterContext
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
interceptors
protected MessageBodyWriterInterceptor[] interceptors
writer
protected MessageBodyWriter writer
entity
protected Object entity
type
protected Class type
genericType
protected Type genericType
annotations
protected Annotation[] annotations
mediaType
protected MediaType mediaType
headers
protected MultivaluedMap<String,Object> headers
outputStream
protected OutputStream outputStream
index
protected int index
MessageBodyWriterContextImpl
public MessageBodyWriterContextImpl(MessageBodyWriterInterceptor[] interceptors,
MessageBodyWriter writer,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream outputStream)
getEntity
public Object getEntity()
- Specified by:
getEntity
in interface MessageBodyWriterContext
setEntity
public void setEntity(Object entity)
- Specified by:
setEntity
in interface MessageBodyWriterContext
getType
public Class getType()
- Specified by:
getType
in interface MessageBodyWriterContext
setType
public void setType(Class type)
- Specified by:
setType
in interface MessageBodyWriterContext
getGenericType
public Type getGenericType()
- Specified by:
getGenericType
in interface MessageBodyWriterContext
setGenericType
public void setGenericType(Type genericType)
- Specified by:
setGenericType
in interface MessageBodyWriterContext
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interface MessageBodyWriterContext
setAnnotations
public void setAnnotations(Annotation[] annotations)
- Specified by:
setAnnotations
in interface MessageBodyWriterContext
getMediaType
public MediaType getMediaType()
- Specified by:
getMediaType
in interface MessageBodyWriterContext
setMediaType
public void setMediaType(MediaType mediaType)
- Specified by:
setMediaType
in interface MessageBodyWriterContext
getHeaders
public MultivaluedMap<String,Object> getHeaders()
- Specified by:
getHeaders
in interface MessageBodyWriterContext
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface MessageBodyWriterContext
setOutputStream
public void setOutputStream(OutputStream outputStream)
- Specified by:
setOutputStream
in interface MessageBodyWriterContext
proceed
public void proceed()
throws IOException,
WebApplicationException
- Specified by:
proceed
in interface MessageBodyWriterContext
- Throws:
IOException
WebApplicationException
Copyright © 2012. All Rights Reserved.