Class DefaultMethodHandler
- java.lang.Object
-
- com.supermap.services.rest.AbstractMethodHandler
-
- com.supermap.services.rest.DefaultMethodHandler
-
public class DefaultMethodHandler extends AbstractMethodHandler
${services_rest_DefaultMethodHandler_Title}
${services_rest_DefaultMethodHandler_Description}
-
-
Field Summary
Fields Modifier and Type Field and Description protected static java.lang.StringsubsectionRequestEntityCacheNameRequests body fragment.protected static doublesubsectionRequestEntityHoldTimeThe retention time of the request body fragment
-
Constructor Summary
Constructors Constructor and Description DefaultMethodHandler()
-
Method Summary
Methods 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 resourcevoidhandleDelete(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleDelete_Title}voidhandleGet(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleGet_Title}voidhandleHead(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleHead_Title}voidhandleOptions(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleOptions_Title}voidhandlePost(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handlePost_Title}voidhandlePut(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handlePut_Title}protected voidsetAccessControlAllowOrigin(Response response, ResourceBase targetResource, boolean isOptions)Sets the access control response header.
-
-
-
Field Detail
-
subsectionRequestEntityCacheName
protected static final java.lang.String subsectionRequestEntityCacheName
Requests body fragment.
-
subsectionRequestEntityHoldTime
protected static final double subsectionRequestEntityHoldTime
The retention time of the request body fragment
-
-
Method Detail
-
handleGet
public void handleGet(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleGet_Title}
${services_rest_DefaultMethodHandler_method_handleGet_Description}
- Specified by:
handleGetin classAbstractMethodHandler- Parameters:
targetResource- ${ services_rest_DefaultMethodHandler_method_handleGet_param_targetResource }request- ${services_rest_DefaultMethodHandler_method_handleGet_param_request }response- ${services_rest_DefaultMethodHandler_method_handleGet_param_response }
-
handlePut
public void handlePut(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handlePut_Title}
${services_rest_DefaultMethodHandler_method_handlePut_Description}
- Specified by:
handlePutin classAbstractMethodHandler- Parameters:
targetResource- ${ services_rest_DefaultMethodHandler_method_handlePut_param_targetResource }request- ${services_rest_DefaultMethodHandler_method_handlePut_param_request }response- ${services_rest_DefaultMethodHandler_method_handlePut_param_response }
-
handlePost
public void handlePost(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handlePost_Title}
${services_rest_DefaultMethodHandler_method_handlePost_Description}
- Specified by:
handlePostin classAbstractMethodHandler- Parameters:
targetResource- ${ services_rest_DefaultMethodHandler_method_handlePost_param_targetResource }request- ${services_rest_DefaultMethodHandler_method_handlePost_param_request }response- ${services_rest_DefaultMethodHandler_method_handlePost_param_response }
-
handleDelete
public void handleDelete(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleDelete_Title}
${services_rest_DefaultMethodHandler_method_handleDelete_Description}
- Specified by:
handleDeletein classAbstractMethodHandler- Parameters:
targetResource- ${ services_rest_DefaultMethodHandler_method_handleDelete_param_targetResource }request- ${services_rest_DefaultMethodHandler_method_handleDelete_param_request }response- ${services_rest_DefaultMethodHandler_method_handleDelete_param_response }
-
handleHead
public void handleHead(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleHead_Title}
${services_rest_DefaultMethodHandler_method_handleHead_Description}
- Specified by:
handleHeadin classAbstractMethodHandler- Parameters:
targetResource- ${ services_rest_DefaultMethodHandler_method_handleHead_param_targetResource }request- ${services_rest_DefaultMethodHandler_method_handleHead_param_request }response- ${services_rest_DefaultMethodHandler_method_handleHead_param_response }
-
handleOptions
public void handleOptions(ResourceBase targetResource, Request request, Response response)${services_rest_DefaultMethodHandler_method_handleOptions_Title}
${services_rest_DefaultMethodHandler_method_handleOptions_Description}
- Specified by:
handleOptionsin classAbstractMethodHandler- Parameters:
targetResource- ${ services_rest_DefaultMethodHandler_method_handleOptions_param_targetResource }request- ${services_rest_DefaultMethodHandler_method_handleOptions_param_request }response- ${services_rest_DefaultMethodHandler_method_handleOptions_param_response }
-
setAccessControlAllowOrigin
protected void setAccessControlAllowOrigin(Response response, ResourceBase targetResource, boolean isOptions)Sets the access control response header.
- Parameters:
response- Response object content.targetResource- The requested target resource.isOptions- whether the current request is an Options method.
-
getSupportedPostfixs
protected java.util.List<java.lang.String> getSupportedPostfixs(ResourceBase targetResource)
A collection of suffixes that determine the type of media supported by the resource
-
-