java.lang.Object
com.pervasive.datarush.webapp.WebApplicationConfig
Configuration to a web application.
-
Constructor Summary
ConstructorsConstructorDescriptionWebApplicationConfig(String host, int port, String contextPath, File warLocation, File tempDirectory) Creates a web application config -
Method Summary
-
Constructor Details
-
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 okport- the port that the web application will listen oncontextPath- the context path. May be "/" to indicate the root.warLocation- the location of the .war file
-
-
Method Details
-
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
The context path for the web application. May be "/" to indicate the root.- Returns:
- the context path
-
getWarLocation
The location of the ".war" file.- Returns:
- the location of the ".war" file.
-
getTempDirectory
The location to use for expanding the .war- Returns:
- the location to use for expanding the .war
-