@Provider public class CachingMessageBodyWriter<T> extends AbstractCachingMessageProvider<T> implements javax.ws.rs.ext.MessageBodyWriter<T>
ACTIVE_JAXRS_PROVIDER_KEY, BUNDLE, LOG, mc
Constructor and Description |
---|
CachingMessageBodyWriter() |
Modifier and Type | Method and Description |
---|---|
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) |
getObject, isProviderKeyNotSet, setMessageContext, setObject
getBus, getConsumeMediaTypes, getEnableBuffering, getEnableStreaming, getProduceMediaTypes, init, isPayloadEmpty, isPayloadEmpty, reportEmptyContentLength, setBus, setConsumeMediaTypes, setEnableBuffering, setEnableStreaming, setProduceMediaTypes
public long getSize(T t, Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public boolean isWriteable(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<T>
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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<T>
IOException
javax.ws.rs.WebApplicationException
protected javax.ws.rs.ext.MessageBodyWriter<T> getWriter(Class<?> type, Type gType, Annotation[] anns, javax.ws.rs.core.MediaType mt)
public void setDelegatingWriter(javax.ws.rs.ext.MessageBodyWriter<T> writer)
Apache CXF