Class WebServerApplicationProperties
- java.lang.Object
-
- com.pixelmed.web.WebServerApplicationProperties
-
public class WebServerApplicationProperties extends java.lang.ObjectThis 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 connectionsWebServer.RootURL- the root of the URL by which this host is accessible (e.g., http://www.hostname.com:7091/)WebServer.StylesheetPathWebServer.DebugLevel- 0 for no debugging (silent), >0 for more verbose levels of debuggingWebServer.InstanceNameForServiceAdvertising- the name to use to advertise the service using DNS-SD (Bonjour)WebServer.NumberOfWorkers- the number of connection thread workers
-
-
Constructor Summary
Constructors Constructor Description WebServerApplicationProperties()Create default properties.WebServerApplicationProperties(java.util.Properties properties)Extract the properties from the supplied properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInstanceName()Return the instance name for service sdvertising.intgetListeningPort()Return the listening port.intgetNumberOfWorkers()Return the number of workers.java.lang.StringgetRequestTypeToUseForInstances()Return the request type to use for displaying instances.java.lang.StringgetRootURL()Return the root URL.java.lang.StringgetStylesheetPath()Return the stylesheet path.intgetWebServerDebugLevel()Return the web server debug level.
-
-
-
Method Detail
-
getRootURL
public java.lang.String getRootURL()
Return the root URL.
- Returns:
- the root URL
-
getStylesheetPath
public java.lang.String getStylesheetPath()
Return the stylesheet path.
- Returns:
- the stylesheet path
-
getRequestTypeToUseForInstances
public java.lang.String 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
-
getWebServerDebugLevel
public int getWebServerDebugLevel()
Return the web server debug level.
- Returns:
- the web server debug level
-
getInstanceName
public java.lang.String 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
-
-