public interface RequestHandler<RequestModel> extends HasValidatableRequestModel<RequestModel>
Request handlers use a RequestModel to represent a Request.
The RequestModel may be simply an instance of a
Request
, in which case no validation is performed by the server.
The Request model may also be a validatable Object that is built from a Request, in which case the plugin should use
Hibernate Validator annotations on the RequestModel fields
(check the server documentation for the current Hibernate Validator version that is required),
which the Identity Server will be able to automatically validate before calling the get(Object, Response)
and post(Object, Response)
handlers.
Modifier and Type | Method and Description |
---|---|
Object |
get(RequestModel requestModel,
Response response)
Handle a GET HTTP request.
|
Object |
post(RequestModel requestModel,
Response response)
Handle a POST HTTP request.
|
onRequestModelValidationFailure, preProcess
Object get(RequestModel requestModel, Response response)
requestModel
- the validated request modelresponse
- responseContainsSensitiveData
Object post(RequestModel requestModel, Response response)
requestModel
- the validated request modelresponse
- responseContainsSensitiveData