- java.lang.Object
-
- com.pervasive.datarush.webapp.WebApplicationConfig
-
public final class WebApplicationConfig extends Object
Configuration to a web application.
-
-
Constructor Summary
Constructors Constructor Description WebApplicationConfig(String host, int port, String contextPath, File warLocation, File tempDirectory)
Creates a web application config
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContextPath()
The context path for the web application.String
getHost()
Returns the host/ip to bind to or null if any okint
getPort()
The port that the web application will listen onFile
getTempDirectory()
The location to use for expanding the .warFile
getWarLocation()
The location of the ".war" file.
-
-
-
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 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 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
-
-