public final class WebApplicationConfig extends Object
Constructor and Description |
---|
WebApplicationConfig(String host,
int port,
String contextPath,
File warLocation,
File tempDirectory)
Creates a web application config
|
Modifier and Type | Method and Description |
---|---|
String |
getContextPath()
The context path for the web application.
|
String |
getHost()
Returns the host/ip to bind to or null if any ok
|
int |
getPort()
The port that the web application will listen on
|
File |
getTempDirectory()
The location to use for expanding the .war
|
File |
getWarLocation()
The location of the ".war" file.
|
public WebApplicationConfig(String host, int port, String contextPath, File warLocation, File tempDirectory)
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 filepublic String getHost()
public int getPort()
public String getContextPath()
public File getWarLocation()
public File getTempDirectory()
Copyright © 2021 Actian Corporation. All rights reserved.