public static class JaxrsServletForJersey.JerseyServletConfig
extends java.lang.Object
The Servlet config class of REST application based on JaX-RS standard.
Constructor and Description |
---|
JaxrsServletForJersey.JerseyServletConfig(ServletConfig servletConfig, java.lang.String servletID)
The constructor.
|
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.
|
public JaxrsServletForJersey.JerseyServletConfig(ServletConfig servletConfig, java.lang.String servletID)
The constructor.
servletConfig
- Servlet configuration object.servletID
- Servlet name.public void addInitParameter(java.lang.String name, java.lang.String value)
Adds a Servlet initial parameter.
name
- The name of the initial parameter to be added.value
- The value of the parameter.public java.lang.String getServletName()
Gets the Servlet name.
public ServletContext getServletContext()
Gets Servlet context.
public java.lang.String getInitParameter(java.lang.String arg0)
Gets an initial parameter of Servlet with its name.
arg0
- The name of the initial parameter.public java.util.Enumeration<java.lang.String> getInitParameterNames()
Gets all the names of the initial parameters of the Servlet.
public void destroy()
Destroys object.