com.supermap.services.rest

Class JaxrsServletForJersey.JerseyServletConfig

  • java.lang.Object
    • com.supermap.services.rest.JaxrsServletForJersey.JerseyServletConfig
  • Enclosing class:
    JaxrsServletForJersey


    public static class JaxrsServletForJersey.JerseyServletConfig
    extends java.lang.Object
    

    The Servlet config class of REST application based on JaX-RS standard.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addInitParameter(java.lang.String name, java.lang.String value)
      Adds a Servlet initial parameter.
      void destroy()
      Destroys object.
      java.lang.String getInitParameter(java.lang.String arg0)
      Gets an initial parameter of Servlet with its name.
      java.util.Enumeration<java.lang.String> getInitParameterNames()
      Gets all the names of the initial parameters of the Servlet.
      ServletContext getServletContext()
      Gets Servlet context.
      java.lang.String getServletName()
      Gets the Servlet name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JaxrsServletForJersey.JerseyServletConfig

        public JaxrsServletForJersey.JerseyServletConfig(ServletConfig servletConfig,
                                                 java.lang.String servletID)
        

        The constructor.

        Parameters:
        servletConfig - Servlet configuration object.
        servletID - Servlet name.
    • Method Detail

      • addInitParameter

        public void addInitParameter(java.lang.String name,
                            java.lang.String value)
        

        Adds a Servlet initial parameter.

        Parameters:
        name - The name of the initial parameter to be added.
        value - The value of the parameter.
      • getServletName

        public java.lang.String getServletName()
        

        Gets the Servlet name.

        Returns:
        Servlet name.
      • getServletContext

        public ServletContext getServletContext()
        

        Gets Servlet context.

        Returns:
        Servlet context.
      • getInitParameter

        public java.lang.String getInitParameter(java.lang.String arg0)
        

        Gets an initial parameter of Servlet with its name.

        Parameters:
        arg0 - The name of the initial parameter.
        Returns:
        The value of the parameter.
      • getInitParameterNames

        public java.util.Enumeration<java.lang.String> getInitParameterNames()
        

        Gets all the names of the initial parameters of the Servlet.

        Returns:
        All the names of the initial parameters of the Servlet.
      • destroy

        public void destroy()
        

        Destroys object.