com.supermap.services.rest

Class DefaultMethodHandler



  • public class DefaultMethodHandler
    extends AbstractMethodHandler
    

    ${services_rest_DefaultMethodHandler_Title}

    ${services_rest_DefaultMethodHandler_Description}

    • 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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

    • Constructor Detail

      • DefaultMethodHandler

        public DefaultMethodHandler()
        
    • 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:
        handleGet in class AbstractMethodHandler
        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:
        handlePut in class AbstractMethodHandler
        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:
        handlePost in class AbstractMethodHandler
        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:
        handleDelete in class AbstractMethodHandler
        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:
        handleHead in class AbstractMethodHandler
        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:
        handleOptions in class AbstractMethodHandler
        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