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

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

public class QueryResponse
extends java.lang.Object

The class QueryResponse represents a response for a discovery query request. The following schema fragment specifies the expected content within the QueryResponse object.

 <complexType name="QueryResponseType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{urn:liberty:disco:2003-08}Status"/>
         <element ref="{urn:liberty:disco:2003-08}ResourceOffering" maxOccurs="unbounded" minOccurs="0"/>
         <element name="Credentials" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <any/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Constructor Summary
QueryResponse()
          Default constructor
QueryResponse(org.w3c.dom.Element root)
          Constructor.
QueryResponse(Status status)
          Constructor.
 
Method Summary
 java.util.List getCredentials()
          Gets credentials
 java.lang.String getId()
          Gets id attribute.
 java.util.List getResourceOffering()
          Gets the returned ResourceOffering.
 Status getStatus()
          Gets status of the query response.
 void setCredentials(java.util.List credentials)
          Sets credentials
 void setId(java.lang.String id)
          Sets id attribute.
 void setResourceOffering(java.util.List offerings)
          Sets ResourceOffering to return.
 void setStatus(Status status)
          Sets the Status of the query response.
 java.lang.String toString()
          Returns formatted string of the QueryResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryResponse

public QueryResponse(org.w3c.dom.Element root)
              throws DiscoveryException
Constructor.
Parameters:
root - QueryResponse DOM element.
Throws:
DiscoveryException - if error occurs.

QueryResponse

public QueryResponse()
Default constructor

QueryResponse

public QueryResponse(Status status)
Constructor.
Parameters:
status - Status of the response.
Method Detail

getStatus

public Status getStatus()
Gets status of the query response.
Returns:
status of the query response.

setStatus

public void setStatus(Status status)
Sets the Status of the query response.
Parameters:
status - the Status of the query response.

getResourceOffering

public java.util.List getResourceOffering()
Gets the returned ResourceOffering.
Returns:
List of ResourceOffering objects

setResourceOffering

public void setResourceOffering(java.util.List offerings)
Sets ResourceOffering to return.
Parameters:
offerings - List of ResourceOffering objects

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.

getCredentials

public java.util.List getCredentials()
Gets credentials
Returns:
List of com.sun.identity.liberty.ws.security.SecurityAssertion objects.

setCredentials

public void setCredentials(java.util.List credentials)
Sets credentials
Parameters:
credentials - List of com.sun.identity.liberty.ws.security.SecurityAssertion objects.

toString

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


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