Package org.glassfish.grizzly.servlet
Class ServletConfigImpl
java.lang.Object
org.glassfish.grizzly.servlet.ServletConfigImpl
- All Implemented Interfaces:
ServletConfig
Basic
ServletConfig implementation.- Author:
- Jeanfrancois Arcand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConcurrentMap<String,String> protected Stringprotected final WebappContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInitParameter(String name) Gets the value of the initialization parameter with the given name.Returns the names of the servlet's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the servlet has no initialization parameters.Returns a reference to theServletContextin which the caller is executing.Returns the name of this servlet instance.protected voidsetInitParameters(Map<String, String> parameters) voidsetServletName(String name) Set the name of this servlet.
-
Field Details
-
name
-
initParameters
-
servletContextImpl
-
-
Constructor Details
-
ServletConfigImpl
-
-
Method Details
-
getServletName
Returns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.- Specified by:
getServletNamein interfaceServletConfig- Returns:
- the name of the servlet instance
-
getServletContext
Returns a reference to theServletContextin which the caller is executing.- Specified by:
getServletContextin interfaceServletConfig- Returns:
- a
ServletContextobject, used by the caller to interact with its servlet container - See Also:
-
getInitParameter
Gets the value of the initialization parameter with the given name.- Specified by:
getInitParameterin interfaceServletConfig- Parameters:
name- the name of the initialization parameter whose value to get- Returns:
- a
Stringcontaining the value of the initialization parameter, ornullif the initialization parameter does not exist
-
setInitParameters
-
setServletName
Set the name of this servlet.- Parameters:
name- The new name of this servlet
-
getInitParameterNames
Returns the names of the servlet's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the servlet has no initialization parameters.- Specified by:
getInitParameterNamesin interfaceServletConfig- Returns:
- an
EnumerationofStringobjects containing the names of the servlet's initialization parameters
-