Class HttpConfig

java.lang.Object
com.tenio.core.network.define.data.HttpConfig

@ThreadSafe public final class HttpConfig extends Object
Holds configuration for HTTP setup.
  • Constructor Details

    • HttpConfig

      public HttpConfig(String name, int port)
      Initialization.
      Parameters:
      name - the configuration name
      port - the associated port
  • Method Details

    • getName

      public String getName()
    • getPaths

      public List<PathConfig> getPaths()
      Retrieves paths associated with the configuration.
      Returns:
      list of paths
    • addPath

      public void addPath(PathConfig path)
      Add a new path to the paths' list.
      Parameters:
      path - the new PathConfig
    • getPort

      public int getPort()
    • toString

      public String toString()
      Overrides:
      toString in class Object