Class WebServerApplicationProperties
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 Summary
ConstructorsConstructorDescriptionCreate default properties.WebServerApplicationProperties
(Properties properties) Extract the properties from the supplied properties. -
Method Summary
Modifier and TypeMethodDescriptionReturn the instance name for service sdvertising.int
Return the listening port.int
Return the number of workers.Return the request type to use for displaying instances.Return the root URL.Return the stylesheet path.
-
Constructor Details
-
WebServerApplicationProperties
public WebServerApplicationProperties()Create default properties.
-
WebServerApplicationProperties
Extract the properties from the supplied properties.
- Parameters:
properties
-
-
-
Method Details
-
getRootURL
Return the root URL.
- Returns:
- the root URL
-
getStylesheetPath
Return the stylesheet path.
- Returns:
- the stylesheet path
-
getRequestTypeToUseForInstances
Return the request type to use for displaying instances.
- Returns:
- the request type to use for displaying instances
-
getListeningPort
public int getListeningPort()Return the listening port.
- Returns:
- the listening port
-
getInstanceName
Return the instance name for service sdvertising.
- Returns:
- the instance name
-
getNumberOfWorkers
public int getNumberOfWorkers()Return the number of workers.
- Returns:
- the number of workers, or -1 if the property is not specified
-