public interface RequestHandler<T>
Modifier and Type | Method and Description |
---|---|
MessageResponse |
generateFailedResponse(T request)
Used for creating responses signaling general failures to handle the request.
|
Class<T> |
getRequestClass()
Return the request class which is handled by this handler.
|
void |
processRequest(T request)
Implements the concrete handling of a received request.
|
Class<T> getRequestClass()
void processRequest(T request) throws RequestHandlerException
request
- The request to handle.RequestHandlerException
- If something goes wrong while handling theMessageResponse generateFailedResponse(T request)
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.