public class ResourcePost extends ResourceUpsert
resourceRegistry, typeParser| Constructor and Description |
|---|
ResourcePost(ResourceRegistry resourceRegistry,
TypeParser typeParser) |
| Modifier and Type | Method and Description |
|---|---|
ResourceResponse |
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.
|
buildNewResource, saveRelationField, saveRelations, setAttributespublic ResourcePost(ResourceRegistry resourceRegistry, TypeParser typeParser)
public boolean isAcceptable(JsonPath jsonPath, String requestType)
Check if it is a POST request for a resource.
jsonPath - Requested resource pathrequestType - HTTP request typepublic ResourceResponse handle(JsonPath jsonPath, RequestParams requestParams, RequestBody requestBody) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException
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.