com.sun.identity.liberty.ws.disco
Class Description

java.lang.Object
  |
  +--com.sun.identity.liberty.ws.disco.Description

public class Description
extends java.lang.Object

The class Description represents a Description Type of a service instance.

The following schema fragment specifies the expected content within the Description object.

 <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
Description()
          Default constructor
Description(org.w3c.dom.Element elem)
          Constructs a Description object from DOM element.
Description(java.util.List securityMechID, java.util.List credentialRef, java.lang.String endPoint)
          Constructor
 
Method Summary
 java.util.List getCredentialRef()
          Gets the value of the CredentialRef property.
 java.lang.String getEndpoint()
          Gets SOAP end point URI
 java.lang.String getId()
          Gets id attribute.
 java.util.List getSecurityMechID()
          Gets supported Security Mechanism IDs
 javax.xml.namespace.QName getServiceNameRef()
          Gets WSDL service name reference.
 java.lang.String getSoapAction()
          Gets SOAP action.
 java.lang.String getWsdlURI()
          Gets URI to WSDL resource containing the service description.
 void setCredentialRef(java.util.List refs)
          Sets the value of the CredentialRef property.
 void setEndpoint(java.lang.String uri)
          Sets SOAP end point URI
 void setId(java.lang.String id)
          Sets id attribute.
 void setServiceNameRef(javax.xml.namespace.QName nameRef)
          Sets WSDL service name reference.
 void setSoapAction(java.lang.String value)
          Sets SOAP action
 void setWsdlURI(java.lang.String uri)
          Sets URI to WSDL resource containing the service description
 java.lang.String toString()
          Returns formatted string of the service description.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Description

public Description()
Default constructor

Description

public Description(java.util.List securityMechID,
                   java.util.List credentialRef,
                   java.lang.String endPoint)
Constructor
Parameters:
securityMechID - List of supported security mechanism ID as String
credentialRef - List of credential references
endPoint - SOAP endpoint URI

Description

public Description(org.w3c.dom.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 java.lang.String getId()
Gets id attribute.
Returns:
id attribute.

setId

public void setId(java.lang.String id)
Sets id attribute.
Parameters:
id - id attribute.

getSoapAction

public java.lang.String getSoapAction()
Gets SOAP action.
Returns:
SOAP action.

setSoapAction

public void setSoapAction(java.lang.String value)
Sets SOAP action
Parameters:
value - SOAP action to be set

getSecurityMechID

public java.util.List getSecurityMechID()
Gets supported Security Mechanism IDs
Returns:
List of IDs as String for security mechanism

getServiceNameRef

public javax.xml.namespace.QName getServiceNameRef()
Gets WSDL service name reference.
Returns:
WSDL service name reference.

setServiceNameRef

public void setServiceNameRef(javax.xml.namespace.QName nameRef)
Sets WSDL service name reference.
Parameters:
nameRef - service name reference.

getWsdlURI

public java.lang.String getWsdlURI()
Gets URI to WSDL resource containing the service description.
Returns:
URI to WSDL resource containing the service description.

setWsdlURI

public void setWsdlURI(java.lang.String uri)
Sets URI to WSDL resource containing the service description
Parameters:
uri - URI to the WSDL resource

getCredentialRef

public java.util.List getCredentialRef()
Gets the value of the CredentialRef property.
Returns:
value of the CredentialRef property.

setCredentialRef

public void setCredentialRef(java.util.List refs)
Sets the value of the CredentialRef property.
Parameters:
refs - List of String value of the CredentialRef property.

getEndpoint

public java.lang.String getEndpoint()
Gets SOAP end point URI
Returns:
SOAP end point URI

setEndpoint

public void setEndpoint(java.lang.String uri)
Sets SOAP end point URI
Parameters:
uri - end point URI to be set

toString

public java.lang.String toString()
Returns formatted string of the service description.
Overrides:
toString in class java.lang.Object
Returns:
formatted string of the service description.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.