Apache CXF API

org.apache.cxf.jaxrs.provider
Class CachingMessageBodyWriter<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
      extended by org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider<T>
          extended by org.apache.cxf.jaxrs.provider.CachingMessageBodyWriter<T>
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<T>

@Provider
public class CachingMessageBodyWriter<T>
extends AbstractCachingMessageProvider<T>
implements javax.ws.rs.ext.MessageBodyWriter<T>


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider
ACTIVE_JAXRS_PROVIDER_KEY, BUNDLE, LOG, mc
 
Constructor Summary
CachingMessageBodyWriter()
           
 
Method Summary
 long getSize(T t, Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mediaType)
           
protected  javax.ws.rs.ext.MessageBodyWriter<T> getWriter(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 boolean isWriteable(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
           
 void setDelegatingWriter(javax.ws.rs.ext.MessageBodyWriter<T> writer)
           
 void setDelegatingWriters(List<javax.ws.rs.ext.MessageBodyWriter<T>> writers)
           
 void writeTo(T obj, Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,Object> theheaders, OutputStream os)
           
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider
getObject, isProviderKeyNotSet, setMessageContext, setObject
 
Methods inherited from class org.apache.cxf.jaxrs.provider.AbstractConfigurableProvider
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingMessageBodyWriter

public CachingMessageBodyWriter()
Method Detail

getSize

public long getSize(T t,
                    Class<?> type,
                    Type gType,
                    Annotation[] anns,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<T>

isWriteable

public boolean isWriteable(Class<?> type,
                           Type gType,
                           Annotation[] anns,
                           javax.ws.rs.core.MediaType mt)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<T>

writeTo

public void writeTo(T obj,
                    Class<?> type,
                    Type gType,
                    Annotation[] anns,
                    javax.ws.rs.core.MediaType mt,
                    javax.ws.rs.core.MultivaluedMap<String,Object> theheaders,
                    OutputStream os)
             throws IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<T>
Throws:
IOException
javax.ws.rs.WebApplicationException

getWriter

protected javax.ws.rs.ext.MessageBodyWriter<T> getWriter(Class<?> type,
                                                         Type gType,
                                                         Annotation[] anns,
                                                         javax.ws.rs.core.MediaType mt)

setDelegatingWriter

public void setDelegatingWriter(javax.ws.rs.ext.MessageBodyWriter<T> writer)

setDelegatingWriters

public void setDelegatingWriters(List<javax.ws.rs.ext.MessageBodyWriter<T>> writers)

Apache CXF API

Apache CXF