Class Description
- java.lang.Object
-
- com.sun.identity.liberty.ws.disco.Description
-
public class Description extends Object
The classDescriptionrepresents a Description Type of a service instance.The following schema fragment specifies the expected content within the
Descriptionobject.<complexType name="DescriptionType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="SecurityMechID" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded"/> <element name="CredentialRef" type="{http://www.w3.org/2001/XMLSchema}IDREF" maxOccurs="unbounded" minOccurs="0"/> <choice> <group ref="{urn:liberty:disco:2003-08}WsdlRef"/> <group ref="{urn:liberty:disco:2003-08}BriefSoapHttpDescription"/> </choice> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description Description()Default constructor.Description(List securityMechID, List credentialRef, String endPoint)Constructor.Description(Element elem)Constructs a Description object from DOM element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetCredentialRef()Gets the value of theCredentialRefproperty.StringgetEndpoint()Gets SOAP end point URI.StringgetId()Gets id attribute.ListgetSecurityMechID()Gets supported Security Mechanism IDs.voidgetSecurityMechID(List mechIDs)Sets supported Security Mechanism IDs.QNamegetServiceNameRef()Gets WSDL service name reference.StringgetSoapAction()Gets SOAP action.StringgetWsdlURI()Gets URI to WSDL resource containing the service description.voidsetCredentialRef(List refs)Sets the value of theCredentialRefproperty.voidsetEndpoint(String uri)Sets SOAP end point URI.voidsetId(String id)Sets id attribute.voidsetServiceNameRef(QName nameRef)Sets WSDL service name reference.voidsetSoapAction(String value)Sets SOAP action.voidsetWsdlURI(String uri)Sets URI to WSDL resource containing the service description.StringtoString()Returns formatted string of the service description.
-
-
-
Constructor Detail
-
Description
public Description()
Default constructor.
-
Description
public Description(List securityMechID, List credentialRef, String endPoint)
Constructor.- Parameters:
securityMechID- List of supported security mechanism ID as StringcredentialRef- List of credential referencesendPoint- SOAP endpoint URI
-
Description
public Description(Element elem) throws DiscoveryException
Constructs a Description object from DOM element.- Parameters:
elem- DOM Element of Description.- Throws:
DiscoveryException- if error occurs.
-
-
Method Detail
-
getId
public String getId()
Gets id attribute.- Returns:
- id attribute.
- See Also:
setId(String)
-
setId
public void setId(String id)
Sets id attribute.- Parameters:
id- id attribute.- See Also:
getId()
-
getSoapAction
public String getSoapAction()
Gets SOAP action.- Returns:
- SOAP action.
- See Also:
setSoapAction(String)
-
setSoapAction
public void setSoapAction(String value)
Sets SOAP action.- Parameters:
value- SOAP action to be set- See Also:
getSoapAction()
-
getSecurityMechID
public List getSecurityMechID()
Gets supported Security Mechanism IDs.- Returns:
- List of IDs as String for security mechanism
-
getSecurityMechID
public void getSecurityMechID(List mechIDs)
Sets supported Security Mechanism IDs.- Parameters:
mechIDs- List of IDs as String for security mechanism
-
getServiceNameRef
public QName getServiceNameRef()
Gets WSDL service name reference.- Returns:
- WSDL service name reference.
- See Also:
setServiceNameRef(QName)
-
setServiceNameRef
public void setServiceNameRef(QName nameRef)
Sets WSDL service name reference.- Parameters:
nameRef- service name reference.- See Also:
getServiceNameRef()
-
getWsdlURI
public String getWsdlURI()
Gets URI to WSDL resource containing the service description.- Returns:
- URI to WSDL resource containing the service description.
- See Also:
setWsdlURI(String)
-
setWsdlURI
public void setWsdlURI(String uri)
Sets URI to WSDL resource containing the service description.- Parameters:
uri- URI to the WSDL resource- See Also:
getWsdlURI()
-
getCredentialRef
public List getCredentialRef()
Gets the value of theCredentialRefproperty.- Returns:
- value of the
CredentialRefproperty. - See Also:
setCredentialRef(List)
-
setCredentialRef
public void setCredentialRef(List refs)
Sets the value of theCredentialRefproperty.- Parameters:
refs- List of String value of theCredentialRefproperty.- See Also:
getCredentialRef()
-
getEndpoint
public String getEndpoint()
Gets SOAP end point URI.- Returns:
- SOAP end point URI
- See Also:
setEndpoint(String)
-
setEndpoint
public void setEndpoint(String uri)
Sets SOAP end point URI.- Parameters:
uri- end point URI to be set- See Also:
getEndpoint()
-
-