org.jboss.resteasy.core.interception
Class MessageBodyWriterContextImpl

java.lang.Object
  extended by 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

Field Summary
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 Summary
MessageBodyWriterContextImpl(MessageBodyWriterInterceptor[] interceptors, MessageBodyWriter writer, Object entity, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream outputStream)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.resteasy.spi.interception.MessageBodyWriterContext
getAttribute, removeAttribute, setAttribute
 

Field Detail

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
Constructor Detail

MessageBodyWriterContextImpl

public MessageBodyWriterContextImpl(MessageBodyWriterInterceptor[] interceptors,
                                    MessageBodyWriter writer,
                                    Object entity,
                                    Class type,
                                    Type genericType,
                                    Annotation[] annotations,
                                    MediaType mediaType,
                                    MultivaluedMap<String,Object> headers,
                                    OutputStream outputStream)
Method Detail

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.