Method Summary |
|
public synchronized ServiceTag | addServiceTag(ServiceTag st) Adds a service tag to this registration data. |
public Map<String, String> | getEnvironmentMap() Returns a map containing the environment information for this
registration data. |
public String | getRegistrationURN() |
public synchronized ServiceTag | getServiceTag(String instanceURN) Returns a service tag of the given instance_urn in this registration
data. |
public Set<ServiceTag> | getServiceTags() Returns all service tags in this registration data. |
public static RegistrationData | loadFromXML(InputStream in) Reads the registration data from the XML document on the
specified input stream. |
public synchronized ServiceTag | removeServiceTag(String instanceURN) Removes a service tag of the given instance_urn from this
registration data.
Parameters: instanceURN - the instance_urn of the service tag to be removed. |
public void | setEnvironment(String name, String value) Sets an element of the specified
name in the environment map
with the given
value . |
public void | storeToXML(OutputStream os) Writes the registration data to the specified output stream
in the format described by the
registration data schema with "UTF-8" encoding. |
public String | toString() Returns a string representation of this registration data in XML
format. |
public byte[] | toXML() Returns a newly allocated byte array containing the registration
data in XML format. |
public synchronized ServiceTag | updateServiceTag(String instanceURN, String productDefinedInstanceID) Updates the product_defined_instance_id in the service tag
of the given instance_urn in this registration data.
Parameters: instanceURN - the instance_urn of the service tag to be updated. Parameters: productDefinedInstanceID - the value of theproduct_defined_instance_id to be set. |