public class ResourceDelete extends Object implements BaseController
| Constructor and Description |
|---|
ResourceDelete(ResourceRegistry resourceRegistry,
TypeParser typeParser) |
| 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.
|
public ResourceDelete(ResourceRegistry resourceRegistry, TypeParser typeParser)
public boolean isAcceptable(JsonPath jsonPath, String requestType)
isAcceptable in interface BaseControllerjsonPath - Requested resource pathrequestType - HTTP request typepublic BaseResponse<?> handle(JsonPath jsonPath, RequestParams requestParams, RequestBody requestBody) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException
BaseControllerhandle in interface BaseControllerjsonPath - Requested resource pathrequestParams - Params specifying requestrequestBody - Top-level JSON object from method's body of the request passed as RequestBodyInvocationTargetExceptionNoSuchMethodExceptionInstantiationExceptionIllegalAccessExceptionCopyright © 2015. All Rights Reserved.