|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HandlerContext
The handler context is used by handlers to call the next handler on the
chain. It is also used by handlers to modify the input and output streams for
stream manipulations by using the InputStreamAdapter
and the
OutputStreamAdapter
classes.
Method Summary | |
---|---|
void |
addInputStreamAdapter(InputStreamAdapter adapter)
Add an InputStreamAdapter to adapt the response input stream |
void |
addOutputStreamAdapter(OutputStreamAdapter adapter)
Add an OutputStreamAdapter to adapt the request output stream |
ClientResponse |
doChain(ClientRequest request)
Call the next handler on the chain. |
java.util.List<InputStreamAdapter> |
getInputStreamAdapters()
Get an unmodifiable list of input stream adapters |
java.util.List<OutputStreamAdapter> |
getOutputStreamAdapters()
Get an unmodifiable list of output stream adapters |
Method Detail |
---|
ClientResponse doChain(ClientRequest request) throws java.lang.Exception
request
- the request context
java.lang.Exception
void addOutputStreamAdapter(OutputStreamAdapter adapter)
OutputStreamAdapter
to adapt the request output stream
adapter
- the OutputStreamAdapeter to addvoid addInputStreamAdapter(InputStreamAdapter adapter)
InputStreamAdapter
to adapt the response input stream
adapter
- the InputStreamAdapeter to addjava.util.List<OutputStreamAdapter> getOutputStreamAdapters()
java.util.List<InputStreamAdapter> getInputStreamAdapters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |