Top Description Fields Constructors Methods
org.glassfish.grizzly.servlet

public Class ServletConfigImpl

extends Object
implements ServletConfig
Class Inheritance
All Implemented Interfaces
jakarta.servlet.ServletConfig
Imports
java.util.Enumeration, .Map, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap, org.glassfish.grizzly.http.server.util.Enumerator, jakarta.servlet.ServletConfig, .ServletContext

Basic ServletConfig implementation.
Author
Jeanfrancois Arcand

Field Summary

Modifier and TypeField and Description
protected final ConcurrentMap<String, String>
protected String
protected final WebappContext

Constructor Summary

AccessConstructor and Description
protected
ServletConfigImpl(WebappContext servletContextImpl)

Method Summary

Modifier and TypeMethod and Description
public String
getInitParameter(String name)

Implements jakarta.servlet.ServletConfig.getInitParameter.

Gets the value of the initialization parameter with the given name.

public Enumeration<String>
getInitParameterNames()

Implements jakarta.servlet.ServletConfig.getInitParameterNames.

Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.

public ServletContext
getServletContext()

Implements jakarta.servlet.ServletConfig.getServletContext.

Returns a reference to the ServletContext in which the caller is executing.

public String
getServletName()

Implements jakarta.servlet.ServletConfig.getServletName.

Returns the name of this servlet instance.

protected void
public void
setServletName(String
The new name of this servlet
name
)

Set the name of this servlet.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

initParametersback to summary
protected final ConcurrentMap<String, String> initParameters
nameback to summary
protected String name
servletContextImplback to summary
protected final WebappContext servletContextImpl

Constructor Detail

ServletConfigImplback to summary
protected ServletConfigImpl(WebappContext servletContextImpl)

Method Detail

getInitParameterback to summary
public String getInitParameter(String name)

Implements jakarta.servlet.ServletConfig.getInitParameter.

Doc from jakarta.servlet.ServletConfig.getInitParameter.

Gets the value of the initialization parameter with the given name.

Annotations
@Override
getInitParameterNamesback to summary
public Enumeration<String> getInitParameterNames()

Implements jakarta.servlet.ServletConfig.getInitParameterNames.

Doc from jakarta.servlet.ServletConfig.getInitParameterNames.

Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.

Annotations
@Override
@SuppressWarnings:unchecked
getServletContextback to summary
public ServletContext getServletContext()

Implements jakarta.servlet.ServletConfig.getServletContext.

Doc from jakarta.servlet.ServletConfig.getServletContext.

Returns a reference to the ServletContext in which the caller is executing.

Annotations
@Override
getServletNameback to summary
public String getServletName()

Implements jakarta.servlet.ServletConfig.getServletName.

Doc from jakarta.servlet.ServletConfig.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.

Annotations
@Override
setInitParametersback to summary
protected void setInitParameters(Map<String, String> parameters)
setServletNameback to summary
public void setServletName(String name)

Set the name of this servlet.

Parameters
name:String

The new name of this servlet