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.ObjectThe Servlet config class of REST application based on JaX-RS standard.
-
-
Constructor Summary
Constructors Constructor and Description JaxrsServletForJersey.JerseyServletConfig(ServletConfig servletConfig, java.lang.String servletID)The constructor.
-
Method Summary
Methods Modifier and Type Method and Description voidaddInitParameter(java.lang.String name, java.lang.String value)Adds a Servlet initial parameter.voiddestroy()Destroys object.java.lang.StringgetInitParameter(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.ServletContextgetServletContext()Gets Servlet context.java.lang.StringgetServletName()Gets the Servlet name.
-
-
-
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.
-
-