Class ServiceInstance
- java.lang.Object
-
- com.sun.identity.liberty.ws.disco.ServiceInstance
-
public class ServiceInstance extends Object
The classServiceInstancedescribes a web service at a distinct protocol endpoint.The following schema fragment specifies the expected content within the
ServiceInstanceobject.<xs:element name="ServiceInstance" type="ServiceInstanceType"/> <complexType name="ServiceInstanceType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{urn:liberty:disco:2003-08}ServiceType"/> <element name="ProviderID" type="{urn:liberty:metadata:2003-08}entityIDType"/> <element name="Description" type="{urn:liberty:disco:2003-08}DescriptionType" maxOccurs="unbounded"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description ServiceInstance()Default Constructor.ServiceInstance(String serviceType, String providerID, List descriptions)ConstructorServiceInstance(Element elem)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetDescription()Gets the service descriptions.StringgetProviderID()Gets provider ID of the service instance.StringgetServiceType()Gets service type.voidsetDescription(List desc)Sets the service descriptions.voidsetProviderID(String value)Sets provider ID.voidsetServiceType(String value)Sets service type.StringtoString()Returns string format of objectServiceInstance.
-
-
-
Constructor Detail
-
ServiceInstance
public ServiceInstance()
Default Constructor.
-
ServiceInstance
public ServiceInstance(String serviceType, String providerID, List descriptions)
Constructor- Parameters:
serviceType- service typeproviderID- provider IDdescriptions- List of Description objects
-
ServiceInstance
public ServiceInstance(Element elem) throws DiscoveryException
Constructor.- Parameters:
elem-ServiceInstanceDOM element.- Throws:
DiscoveryException- if error occurs.
-
-
Method Detail
-
getProviderID
public String getProviderID()
Gets provider ID of the service instance.- Returns:
- provider ID of the service instance.
- See Also:
setProviderID(String)
-
setProviderID
public void setProviderID(String value)
Sets provider ID.- Parameters:
value- provider ID.- See Also:
getProviderID()
-
getDescription
public List getDescription()
Gets the service descriptions.- Returns:
- List of Description objects
- See Also:
setDescription(List)
-
setDescription
public void setDescription(List desc)
Sets the service descriptions.- Parameters:
desc- List of Description objects.- See Also:
getDescription()
-
getServiceType
public String getServiceType()
Gets service type.- Returns:
- service type.
- See Also:
setServiceType(String)
-
setServiceType
public void setServiceType(String value)
Sets service type.- Parameters:
value- service type.- See Also:
getServiceType()
-
-