public class DefaultMethodHandler extends AbstractMethodHandler
${services_rest_DefaultMethodHandler_Title}
${services_rest_DefaultMethodHandler_Description}
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
subsectionRequestEntityCacheName
Requests body fragment.
|
protected static double |
subsectionRequestEntityHoldTime
The retention time of the request body fragment
|
Constructor and Description |
---|
DefaultMethodHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> |
getSupportedPostfixs(ResourceBase targetResource)
A collection of suffixes that determine the type of media supported by the resource
|
void |
handleDelete(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleDelete_Title}
|
void |
handleGet(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleGet_Title}
|
void |
handleHead(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleHead_Title}
|
void |
handleOptions(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleOptions_Title}
|
void |
handlePost(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handlePost_Title}
|
void |
handlePut(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handlePut_Title}
|
protected void |
setAccessControlAllowOrigin(Response response, ResourceBase targetResource, boolean isOptions)
Sets the access control response header.
|
protected static final java.lang.String subsectionRequestEntityCacheName
Requests body fragment.
protected static final double subsectionRequestEntityHoldTime
The retention time of the request body fragment
public void handleGet(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleGet_Title}
${services_rest_DefaultMethodHandler_method_handleGet_Description}
handleGet
in class AbstractMethodHandler
targetResource
- ${ services_rest_DefaultMethodHandler_method_handleGet_param_targetResource }request
- ${services_rest_DefaultMethodHandler_method_handleGet_param_request }response
- ${services_rest_DefaultMethodHandler_method_handleGet_param_response }public void handlePut(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handlePut_Title}
${services_rest_DefaultMethodHandler_method_handlePut_Description}
handlePut
in class AbstractMethodHandler
targetResource
- ${ services_rest_DefaultMethodHandler_method_handlePut_param_targetResource }request
- ${services_rest_DefaultMethodHandler_method_handlePut_param_request }response
- ${services_rest_DefaultMethodHandler_method_handlePut_param_response }public void handlePost(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handlePost_Title}
${services_rest_DefaultMethodHandler_method_handlePost_Description}
handlePost
in class AbstractMethodHandler
targetResource
- ${ services_rest_DefaultMethodHandler_method_handlePost_param_targetResource }request
- ${services_rest_DefaultMethodHandler_method_handlePost_param_request }response
- ${services_rest_DefaultMethodHandler_method_handlePost_param_response }public void handleDelete(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleDelete_Title}
${services_rest_DefaultMethodHandler_method_handleDelete_Description}
handleDelete
in class AbstractMethodHandler
targetResource
- ${ services_rest_DefaultMethodHandler_method_handleDelete_param_targetResource }request
- ${services_rest_DefaultMethodHandler_method_handleDelete_param_request }response
- ${services_rest_DefaultMethodHandler_method_handleDelete_param_response }public void handleHead(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleHead_Title}
${services_rest_DefaultMethodHandler_method_handleHead_Description}
handleHead
in class AbstractMethodHandler
targetResource
- ${ services_rest_DefaultMethodHandler_method_handleHead_param_targetResource }request
- ${services_rest_DefaultMethodHandler_method_handleHead_param_request }response
- ${services_rest_DefaultMethodHandler_method_handleHead_param_response }public void handleOptions(ResourceBase targetResource, Request request, Response response)
${services_rest_DefaultMethodHandler_method_handleOptions_Title}
${services_rest_DefaultMethodHandler_method_handleOptions_Description}
handleOptions
in class AbstractMethodHandler
targetResource
- ${ services_rest_DefaultMethodHandler_method_handleOptions_param_targetResource }request
- ${services_rest_DefaultMethodHandler_method_handleOptions_param_request }response
- ${services_rest_DefaultMethodHandler_method_handleOptions_param_response }protected void setAccessControlAllowOrigin(Response response, ResourceBase targetResource, boolean isOptions)
Sets the access control response header.
response
- Response object content.targetResource
- The requested target resource.isOptions
- whether the current request is an Options method.protected java.util.List<java.lang.String> getSupportedPostfixs(ResourceBase targetResource)