public interface RequestHandler
Implementations must be thread-safe to protect themselves against concurrent calls from different jobs.
Modifier and Type | Method and Description |
---|---|
HTTPResponse |
process(HTTPRequest request,
java.util.Map<java.lang.String,java.lang.String> attributes)
Processes the request and creates the appropriate response, or null if this request handler doesn't match the
request.
|
HTTPResponse process(HTTPRequest request, java.util.Map<java.lang.String,java.lang.String> attributes)
request
- the HTTPRequest
to process.attributes
- the attributes of the request.HTTPResponse
to send, or null if not handled by this RequestHandler
.