com.supermap.services.rest

Class JaxrsServletForJersey

  • java.lang.Object
    • HttpServlet
      • com.supermap.services.rest.JaxrsServletForJersey
    • Constructor Detail

      • JaxrsServletForJersey

        public JaxrsServletForJersey()
        

        The constructor.

    • Method Detail

      • getInterfaceContext

        public InterfaceContext getInterfaceContext()
        

        Gets the service interface context.

        Returns:
        The service interface context.
      • setInterfaceContext

        public void setInterfaceContext(InterfaceContext interfaceContext)
        

        Sets the service interface context to inject interface context object.

        Specified by:
        setInterfaceContext in interface InterfaceContextAware
        Parameters:
        interfaceContext - The service interface context interface.
      • service

        public void service(HttpServletRequest request,
                   HttpServletResponse response)
                     throws ServletException,
                            java.io.IOException
        

        Provides the request forward processing from URI to REST resource.

        Parameters:
        request - The request object.
        response - The response object.
        Throws:
        ServletException - Servlet exception.
        java.io.IOException - Exception generated by I/O operation failure or break.
      • destroy

        public void destroy()
        

        Destroys object.

      • getURLQueryParamValue

        protected java.lang.String getURLQueryParamValue(HttpServletRequest request,
                                             java.lang.String paramName)
        
        Gets the specified query parameter in the request url, if there is parameters with the same name, the return value will use "%_" to separate the parameters. The return values are decoded.
      • getServletContainer

        protected ServletContainer getServletContainer()
        

        Gets the Servlet container.

        Returns:
      • getJaxrsApplicationName

        protected java.lang.String getJaxrsApplicationName()
        

        Gets the Jaxts application name.

        Returns:
      • setJaxrsApplicationName

        public void setJaxrsApplicationName(java.lang.String value)
        

        Sets the Jaxts application name.

        Parameters:
        value -
        Since:
        7.0.1
      • setJaxrsApplication

        public void setJaxrsApplication(javax.ws.rs.core.Application value)
        
      • setJaxrsApplicationClass

        public void setJaxrsApplicationClass(java.lang.Class<? extends javax.ws.rs.core.Application> clz)
        

        Sets the Jaxts application class. It is equivalent to call etJaxrsApplicationName(clz.getName()).

        Parameters:
        clz -
        Since:
        7.0.1
      • getId

        public java.lang.String getId()