Package org.glassfish.grizzly.servlet
Class ServletConfigImpl
- java.lang.Object
-
- org.glassfish.grizzly.servlet.ServletConfigImpl
-
- All Implemented Interfaces:
jakarta.servlet.ServletConfig
public class ServletConfigImpl extends Object implements jakarta.servlet.ServletConfig
BasicServletConfigimplementation.- Author:
- Jeanfrancois Arcand
-
-
Field Summary
Fields Modifier and Type Field Description protected ConcurrentMap<String,String>initParametersprotected Stringnameprotected WebappContextservletContextImpl
-
Constructor Summary
Constructors Modifier Constructor Description protectedServletConfigImpl(WebappContext servletContextImpl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInitParameter(String name)Enumeration<String>getInitParameterNames()jakarta.servlet.ServletContextgetServletContext()StringgetServletName()protected voidsetInitParameters(Map<String,String> parameters)voidsetServletName(String name)Set the name of this servlet.
-
-
-
Field Detail
-
name
protected String name
-
initParameters
protected final ConcurrentMap<String,String> initParameters
-
servletContextImpl
protected final WebappContext servletContextImpl
-
-
Constructor Detail
-
ServletConfigImpl
protected ServletConfigImpl(WebappContext servletContextImpl)
-
-
Method Detail
-
getServletName
public String getServletName()
- Specified by:
getServletNamein interfacejakarta.servlet.ServletConfig
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()
- Specified by:
getServletContextin interfacejakarta.servlet.ServletConfig
-
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameterin interfacejakarta.servlet.ServletConfig
-
setServletName
public void setServletName(String name)
Set the name of this servlet.- Parameters:
name- The new name of this servlet
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
- Specified by:
getInitParameterNamesin interfacejakarta.servlet.ServletConfig
-
-