public class WebServerApplicationProperties
extends java.lang.Object
This class provides common support to applications requiring properties related to web services.
The following properties are supported:
WebServer.ListeningPort
- the port that an association acceptor will listen on for incoming http connections
WebServer.RootURL
- the root of the URL by which this host is accessible (e.g., http://www.hostname.com:7091/)
WebServer.StylesheetPath
WebServer.InstanceNameForServiceAdvertising
- the name to use to advertise the service using DNS-SD (Bonjour)
WebServer.NumberOfWorkers
- the number of connection thread workers
Constructor and Description |
---|
WebServerApplicationProperties()
Create default properties.
|
WebServerApplicationProperties(java.util.Properties properties)
Extract the properties from the supplied properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInstanceName()
Return the instance name for service sdvertising.
|
int |
getListeningPort()
Return the listening port.
|
int |
getNumberOfWorkers()
Return the number of workers.
|
java.lang.String |
getRequestTypeToUseForInstances()
Return the request type to use for displaying instances.
|
java.lang.String |
getRootURL()
Return the root URL.
|
java.lang.String |
getStylesheetPath()
Return the stylesheet path.
|
public WebServerApplicationProperties()
Create default properties.
public WebServerApplicationProperties(java.util.Properties properties)
Extract the properties from the supplied properties.
properties
- public java.lang.String getInstanceName()
Return the instance name for service sdvertising.
public int getListeningPort()
Return the listening port.
public int getNumberOfWorkers()
Return the number of workers.
public java.lang.String getRequestTypeToUseForInstances()
Return the request type to use for displaying instances.
public java.lang.String getRootURL()
Return the root URL.
public java.lang.String getStylesheetPath()
Return the stylesheet path.