org.jboss.resteasy.core.interception
Class MessageBodyWriterContextImpl

java.lang.Object
  extended by org.jboss.resteasy.core.interception.MessageBodyWriterContextImpl
All Implemented Interfaces:
MessageBodyWriterContext

public class MessageBodyWriterContextImpl
extends java.lang.Object
implements MessageBodyWriterContext

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  java.lang.annotation.Annotation[] annotations
           
protected  java.lang.Object entity
           
protected  java.lang.reflect.Type genericType
           
protected  MultivaluedMap<java.lang.String,java.lang.Object> headers
           
protected  int index
           
protected  MessageBodyWriterInterceptor[] interceptors
           
protected  MediaType mediaType
           
protected  java.io.OutputStream outputStream
           
protected  java.lang.Class type
           
protected  MessageBodyWriter writer
           
 
Constructor Summary
MessageBodyWriterContextImpl(MessageBodyWriterInterceptor[] interceptors, MessageBodyWriter writer, java.lang.Object entity, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> headers, java.io.OutputStream outputStream)
           
 
Method Summary
 java.lang.annotation.Annotation[] getAnnotations()
           
 java.lang.Object getEntity()
           
 java.lang.reflect.Type getGenericType()
           
 MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
           
 MediaType getMediaType()
           
 java.io.OutputStream getOutputStream()
           
 java.lang.Class getType()
           
 void proceed()
           
 void setAnnotations(java.lang.annotation.Annotation[] annotations)
           
 void setEntity(java.lang.Object entity)
           
 void setGenericType(java.lang.reflect.Type genericType)
           
 void setMediaType(MediaType mediaType)
           
 void setOutputStream(java.io.OutputStream outputStream)
           
 void setType(java.lang.Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interceptors

protected MessageBodyWriterInterceptor[] interceptors

writer

protected MessageBodyWriter writer

entity

protected java.lang.Object entity

type

protected java.lang.Class type

genericType

protected java.lang.reflect.Type genericType

annotations

protected java.lang.annotation.Annotation[] annotations

mediaType

protected MediaType mediaType

headers

protected MultivaluedMap<java.lang.String,java.lang.Object> headers

outputStream

protected java.io.OutputStream outputStream

index

protected int index
Constructor Detail

MessageBodyWriterContextImpl

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

getEntity

public java.lang.Object getEntity()
Specified by:
getEntity in interface MessageBodyWriterContext

setEntity

public void setEntity(java.lang.Object entity)
Specified by:
setEntity in interface MessageBodyWriterContext

getType

public java.lang.Class getType()
Specified by:
getType in interface MessageBodyWriterContext

setType

public void setType(java.lang.Class type)
Specified by:
setType in interface MessageBodyWriterContext

getGenericType

public java.lang.reflect.Type getGenericType()
Specified by:
getGenericType in interface MessageBodyWriterContext

setGenericType

public void setGenericType(java.lang.reflect.Type genericType)
Specified by:
setGenericType in interface MessageBodyWriterContext

getAnnotations

public java.lang.annotation.Annotation[] getAnnotations()
Specified by:
getAnnotations in interface MessageBodyWriterContext

setAnnotations

public void setAnnotations(java.lang.annotation.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<java.lang.String,java.lang.Object> getHeaders()
Specified by:
getHeaders in interface MessageBodyWriterContext

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface MessageBodyWriterContext

setOutputStream

public void setOutputStream(java.io.OutputStream outputStream)
Specified by:
setOutputStream in interface MessageBodyWriterContext

proceed

public void proceed()
             throws java.io.IOException,
                    WebApplicationException
Specified by:
proceed in interface MessageBodyWriterContext
Throws:
java.io.IOException
WebApplicationException


Copyright © 2010. All Rights Reserved.