public interface Adapter
ProtocolHandler
Modifier and Type | Method and Description |
---|---|
boolean |
asyncDispatch(Request req,
Response res,
SocketEvent status) |
void |
checkRecycled(Request req,
Response res)
Assert that request and response have been recycled.
|
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 Exception
req
- The request objectres
- The response objectException
- if an error happens during handling of
the request. Common errors are:
boolean prepare(Request req, Response res) throws 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 responseException
- If the processing fails unexpectedlyboolean asyncDispatch(Request req, Response res, SocketEvent status) throws Exception
Exception
void checkRecycled(Request req, Response res)
req
- Requestres
- ResponseString getDomain()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.