Class ListenerHostConfig
java.lang.Object
org.apache.struts2.dispatcher.listener.ListenerHostConfig
- All Implemented Interfaces:
HostConfig
Host configuration that just holds a ServletContext
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ListenerHostConfig
public ListenerHostConfig(jakarta.servlet.ServletContext servletContext)
-
-
Method Details
-
getInitParameter
- Specified by:
getInitParameter
in interfaceHostConfig
- Parameters:
key
- The parameter key- Returns:
- The parameter value
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfaceHostConfig
- Returns:
- A list of parameter names
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfaceHostConfig
- Returns:
- The servlet context
-