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 javax.ws.rs.ext.MessageBodyWriter writer
entity
protected Object entity
type
protected Class type
genericType
protected Type genericType
annotations
protected Annotation[] annotations
mediaType
protected javax.ws.rs.core.MediaType mediaType
headers
protected javax.ws.rs.core.MultivaluedMap<String,Object> headers
outputStream
protected OutputStream outputStream
index
protected int index
MessageBodyWriterContextImpl
public MessageBodyWriterContextImpl(MessageBodyWriterInterceptor[] interceptors,
javax.ws.rs.ext.MessageBodyWriter writer,
Object entity,
Class type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.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 javax.ws.rs.core.MediaType getMediaType()
- Specified by:
getMediaType
in interface MessageBodyWriterContext
setMediaType
public void setMediaType(javax.ws.rs.core.MediaType mediaType)
- Specified by:
setMediaType
in interface MessageBodyWriterContext
getHeaders
public javax.ws.rs.core.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,
javax.ws.rs.WebApplicationException
- Specified by:
proceed
in interface MessageBodyWriterContext
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.