public interface Adapter
ProtocolHandler
Modifier and Type | Method and Description |
---|---|
boolean |
asyncDispatch(Request req,
Response res,
SocketStatus status) |
void |
checkRecycled(Request req,
Response res)
Assert that request and response have been recycled.
|
void |
errorDispatch(Request request,
Response response) |
boolean |
event(Request req,
Response res,
SocketStatus status) |
java.lang.String |
getDomain()
Provide the name of the domain to use to register MBeans for components
associated with the connector.
|
void |
log(Request req,
Response res,
long time) |
boolean |
prepare(Request req,
Response res)
Prepare the given request/response for processing.
|
void |
service(Request req,
Response res)
Call the service method, and notify all listeners
|
void service(Request req, Response res) throws java.lang.Exception
req
- The request objectres
- The response objectjava.lang.Exception
- if an error happens during handling of
the request. Common errors are:
boolean prepare(Request req, Response res) throws java.lang.Exception
req
- The request objectres
- The response objecttrue
if processing can continue, otherwise
false
in which case an appropriate error will have
been set on the responsejava.lang.Exception
- If the processing fails unexpectedlyboolean event(Request req, Response res, SocketStatus status) throws java.lang.Exception
java.lang.Exception
boolean asyncDispatch(Request req, Response res, SocketStatus status) throws java.lang.Exception
java.lang.Exception
void checkRecycled(Request req, Response res)
req
- Requestres
- Responsejava.lang.String getDomain()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.