org.apache.struts2.dispatcher

## Interface HostConfig

- All Known Implementing Classes:
    FilterHostConfig, ListenerHostConfig, ServletHostConfig

      public interface HostConfig

  Abstraction for host configuration information such as init params or the servlet context.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getInitParameter(String key)`
    `Iterator<String>` | `getInitParameterNames()`
    `javax.servlet.ServletContext` | `getServletContext()`

- - ### Method Detail

    - #### getInitParameter

          String getInitParameter(String key)

      Parameters:
        `key` - The parameter key
      Returns:
        The parameter value

    - #### getInitParameterNames

          Iterator<String> getInitParameterNames()

      Returns:
        A list of parameter names

    - #### getServletContext

          javax.servlet.ServletContext getServletContext()

      Returns:
        The servlet context

Copyright © 2000–2020 Apache Software Foundation. All rights reserved.