|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WriterInterceptorContext
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 | |
|---|---|
Object |
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(Object 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, getProperty, getPropertyNames, getType, removeProperty, setAnnotations, setGenericType, setMediaType, setProperty, 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.Object getEntity()
void setEntity(Object 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 | |||||||||