Package org.apache.struts2.dispatcher.listener

# Class ListenerHostConfig

java.lang.Object
org.apache.struts2.dispatcher.listener.ListenerHostConfig

All Implemented Interfaces:
  `HostConfig`

public class ListenerHostConfig extends Object implements HostConfig
Host configuration that just holds a ServletContext

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ListenerHostConfig(jakarta.servlet.ServletContext servletContext)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getInitParameter(String key)`
  `Iterator<String>`
  `getInitParameterNames()`
  `jakarta.servlet.ServletContext`
  `getServletContext()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ListenerHostConfig

    public ListenerHostConfig(jakarta.servlet.ServletContext servletContext)

- ## Method Details

  - ### getInitParameter

    public String getInitParameter(String key)
    Specified by:
      `getInitParameter` in interface `HostConfig`
    Parameters:
      `key` - The parameter key
    Returns:
      The parameter value

  - ### getInitParameterNames

    public Iterator<String> getInitParameterNames()
    Specified by:
      `getInitParameterNames` in interface `HostConfig`
    Returns:
      A list of parameter names

  - ### getServletContext

    public jakarta.servlet.ServletContext getServletContext()
    Specified by:
      `getServletContext` in interface `HostConfig`
    Returns:
      The servlet context