Package io.undertow.servlet.spec
Class ServletConfigImpl
java.lang.Object
io.undertow.servlet.spec.ServletConfigImpl
- All Implemented Interfaces:
ServletConfig
- Author:
- Stuart Douglas
-
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.
-
Constructor Details
-
ServletConfigImpl
-
-
Method Details
-
getServletName
Description copied from interface:ServletConfigReturns 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
Description copied from interface:ServletConfigReturns 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
Description copied from interface:ServletConfigGets 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
-
getInitParameterNames
Description copied from interface:ServletConfigReturns 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
-