Top Fields Constructors Methods
io.undertow.servlet.spec

public Class ServletConfigImpl

extends Object
implements ServletConfig
Class Inheritance
All Implemented Interfaces
jakarta.servlet.ServletConfig
Imports
java.util.Enumeration, jakarta.servlet.ServletConfig, .ServletContext, io.undertow.servlet.UndertowServletMessages, io.undertow.servlet.api.ServletInfo, io.undertow.servlet.util.IteratorEnumeration

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final ServletContext
private final ServletInfo

Constructor Summary

AccessConstructor and Description
public
ServletConfigImpl(final ServletInfo servletInfo, final ServletContext servletContext)

Method Summary

Modifier and TypeMethod and Description
public String
getInitParameter(final String
the name of the initialization parameter whose value to get
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

servletContextback to summary
private final ServletContext servletContext
servletInfoback to summary
private final ServletInfo servletInfo

Constructor Detail

ServletConfigImplback to summary
public ServletConfigImpl(final ServletInfo servletInfo, final ServletContext servletContext)

Method Detail

getInitParameterback to summary
public String getInitParameter(final String name)

Implements jakarta.servlet.ServletConfig.getInitParameter.

Doc from jakarta.servlet.ServletConfig.getInitParameter.

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

Parameters
name:String

the name of the initialization parameter whose value to get

Returns:String

a String containing the value of the initialization parameter, or null if the initialization parameter does not exist

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.

Returns:Enumeration<String>

an Enumeration of String objects containing the names of the servlet's initialization parameters

Annotations
@Override
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.

Returns:ServletContext

a ServletContext object, used by the caller to interact with its servlet container

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.

Returns:String

the name of the servlet instance

Annotations
@Override