|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Java type supported by corresponding message body writerpublic interface WriterInterceptorContext<T>
Context class used by WriterInterceptor
to intercept calls to MessageBodyWriter.writeTo(T, java.lang.Class>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap
.
The getters and setters in this context class correspond to the
parameters of the intercepted method.
WriterInterceptor
,
MessageBodyWriter
Method Summary | |
---|---|
T |
getEntity()
Get object to be written as HTTP entity. |
MultivaluedMap<String,Object> |
getHeaders()
Get mutable map of HTTP headers. |
OutputStream |
getOutputStream()
Get the output stream for the object to be written. |
void |
proceed()
Proceed to the next interceptor in the chain. |
void |
setEntity(T entity)
Update object to be written as HTTP entity. |
void |
setOutputStream(OutputStream os)
Update the output stream for the object to be written. |
Methods inherited from interface javax.ws.rs.ext.InterceptorContext |
---|
getAnnotations, getGenericType, getMediaType, getProperties, getType, setAnnotations, setGenericType, setMediaType, setType |
Method Detail |
---|
void proceed() throws IOException
MessageBodyWriter.writeTo(T, java.lang.Class>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream)
method.
IOException
- if an IO exception arises.T getEntity()
void setEntity(T entity)
entity
- new object to be written.OutputStream getOutputStream()
void setOutputStream(OutputStream os)
os
- new output stream for the object to be written.MultivaluedMap<String,Object> getHeaders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |