public interface BaseController
| Modifier and Type | Method and Description |
|---|---|
BaseResponse<?> |
handle(JsonPath jsonPath,
RequestParams requestParams,
RequestBody requestBody)
Passes the request to controller method.
|
boolean |
isAcceptable(JsonPath jsonPath,
String requestType)
Checks if requested resource method is acceptable.
|
boolean isAcceptable(JsonPath jsonPath, String requestType)
jsonPath - Requested resource pathrequestType - HTTP request typeBaseResponse<?> handle(JsonPath jsonPath, RequestParams requestParams, RequestBody requestBody) throws Exception
jsonPath - Requested resource pathrequestParams - Params specifying requestrequestBody - Top-level JSON object from method's body of the request passed as RequestBodyException - internal Katharsis exceptionCopyright © 2015. All Rights Reserved.