Class WebApplicationConfig


  • public final class WebApplicationConfig
    extends Object
    Configuration to a web application.
    • Constructor Detail

      • WebApplicationConfig

        public WebApplicationConfig​(String host,
                                    int port,
                                    String contextPath,
                                    File warLocation,
                                    File tempDirectory)
        Creates a web application config
        Parameters:
        host - the host/ip to bind to or null if any host ok
        port - the port that the web application will listen on
        contextPath - the context path. May be "/" to indicate the root.
        warLocation - the location of the .war file
    • Method Detail

      • getHost

        public String getHost()
        Returns the host/ip to bind to or null if any ok
        Returns:
        the host
      • getPort

        public int getPort()
        The port that the web application will listen on
        Returns:
        the port
      • getContextPath

        public String getContextPath()
        The context path for the web application. May be "/" to indicate the root.
        Returns:
        the context path
      • getWarLocation

        public File getWarLocation()
        The location of the ".war" file.
        Returns:
        the location of the ".war" file.
      • getTempDirectory

        public File getTempDirectory()
        The location to use for expanding the .war
        Returns:
        the location to use for expanding the .war