|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.webservice.WebserviceProperties
public class WebserviceProperties
Manage Webservice properties.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_HOST
default hostname, if local hostname cannot be determined: "localhost". |
static java.lang.String |
DEFAULT_PORT
default port: 8081 (because 8080 is used by the HTTP service in SMILA). |
static java.lang.String |
DEFAULT_WEBROOT
default webroot: "". |
static java.lang.String |
PROP_HOSTNAME
config property for hostname. |
static java.lang.String |
PROP_PORT
config propertiy for TCP/IP port. |
static java.lang.String |
PROP_WEBROOT
config property for webroot. |
Constructor Summary | |
---|---|
WebserviceProperties()
create default instance. |
|
WebserviceProperties(java.io.InputStream propertyFile)
read property file and override defaults. |
|
WebserviceProperties(java.util.Properties props)
override defaults from properties. |
Method Summary | |
---|---|
java.lang.String |
getBaseURL()
|
java.lang.String |
getHostname()
|
java.lang.String |
getPort()
|
java.lang.String |
getWebroot()
|
void |
setHostname(java.lang.String hostname)
|
void |
setPort(java.lang.String port)
|
void |
setWebroot(java.lang.String webroot)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_HOST
public static final java.lang.String DEFAULT_PORT
public static final java.lang.String DEFAULT_WEBROOT
public static final java.lang.String PROP_HOSTNAME
public static final java.lang.String PROP_PORT
public static final java.lang.String PROP_WEBROOT
Constructor Detail |
---|
public WebserviceProperties()
public WebserviceProperties(java.util.Properties props)
props
- properties.public WebserviceProperties(java.io.InputStream propertyFile) throws java.io.IOException
propertyFile
- property file.
java.io.IOException
- error reading the stream.Method Detail |
---|
public java.lang.String getHostname()
public java.lang.String getPort()
public java.lang.String getWebroot()
public void setHostname(java.lang.String hostname)
hostname
- new hostnamepublic void setPort(java.lang.String port)
port
- new TCP/IP port numberpublic void setWebroot(java.lang.String webroot)
webroot
- new root for webservice URLs.public java.lang.String getBaseURL()
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |