public class AddressInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description
Arbitrary description for the address
|
java.lang.String |
imagePath
Optional file path for an image to display
|
java.lang.String |
serverPassword
Password to access the server
|
java.lang.String |
serverURL
URL address of the server the service runs on
|
java.lang.String |
serviceAdminKey
Admin key to access the service
|
java.lang.String |
serviceID
Unique service ID
|
java.lang.String |
servicePassword
Password to access the service
|
Constructor and Description |
---|
AddressInfo()
Create a new instance of AddressInfo
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
idFromKey(java.lang.String serviceKey)
Parse the service key to retrieve the service id only.
|
boolean |
isComplete()
Return true if the entry is complete.
|
org.licas_xml.abs.Element |
serverAddress()
Construct and return the base server address as an XML-based description, including
the server ip address and default
Const .HTTPSERVER name. |
org.licas_xml.abs.Element |
serviceAddress()
Construct and return the service address as an XML-based description, including the
server ip address.
|
java.lang.String |
serviceKey()
Construct and return the service key value that should be a unique URI across servers.
|
static java.lang.String |
serviceKey(java.lang.String thisServerURL,
java.lang.String thisServiceID)
Construct and return the service key value that should be a unique URI across servers.
|
public java.lang.String serviceID
public java.lang.String servicePassword
public java.lang.String serviceAdminKey
public java.lang.String serverURL
public java.lang.String serverPassword
public java.lang.String imagePath
public java.lang.String description
public boolean isComplete()
public java.lang.String serviceKey() throws java.lang.Exception
java.lang.Exception
- any error.public org.licas_xml.abs.Element serviceAddress()
Handle
.public org.licas_xml.abs.Element serverAddress()
Const
.HTTPSERVER
name.Handle
.public static java.lang.String idFromKey(java.lang.String serviceKey) throws java.lang.Exception
serviceKey
- the full URI service key, as constructed by serviceKey()
.java.lang.Exception
- any error.public static java.lang.String serviceKey(java.lang.String thisServerURL, java.lang.String thisServiceID) throws java.lang.Exception
thisServerURL
- the server url address to use (http://ip/port)
.thisServiceID
- the service uuid.java.lang.Exception
- any error.