com.sun.identity.liberty.ws.disco
クラス QueryResponse

java.lang.Object
  上位を拡張 com.sun.identity.liberty.ws.disco.QueryResponse

public class QueryResponse
extends 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>
 


コンストラクタの概要
QueryResponse()
          Default constructor.
QueryResponse(Element root)
          Constructor.
QueryResponse(Status status)
          Constructor.
 
メソッドの概要
 List getCredentials()
          Gets credentials.
 String getId()
          Gets id attribute.
 List getResourceOffering()
          Gets the returned ResourceOffering.
 Status getStatus()
          Gets status of the query response.
 void setCredentials(List credentials)
          Sets credentials.
 void setId(String id)
          Sets id attribute.
 void setResourceOffering(List offerings)
          Sets ResourceOffering to return.
 void setStatus(Status status)
          Sets the Status of the query response.
 String toString()
          Returns formatted string of the QueryResponse.
 

コンストラクタの詳細

QueryResponse

public QueryResponse(Element root)
              throws DiscoveryException
Constructor.

パラメータ:
root - QueryResponse DOM element.
例外:
DiscoveryException - if error occurs.

QueryResponse

public QueryResponse()
Default constructor.


QueryResponse

public QueryResponse(Status status)
Constructor.

パラメータ:
status - Status of the response.
メソッドの詳細

getStatus

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

戻り値:
status of the query response.
関連項目:
QueryResponse.setStatus(com.sun.identity.liberty.ws.common.Status)

setStatus

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

パラメータ:
status - the Status of the query response.
関連項目:
QueryResponse.getStatus()

getResourceOffering

public List getResourceOffering()
Gets the returned ResourceOffering.

戻り値:
List of ResourceOffering objects
関連項目:
QueryResponse.setResourceOffering(List)

setResourceOffering

public void setResourceOffering(List offerings)
Sets ResourceOffering to return.

パラメータ:
offerings - List of ResourceOffering objects
関連項目:
QueryResponse.getResourceOffering()

getId

public String getId()
Gets id attribute.

戻り値:
id attribute.
関連項目:
QueryResponse.setId(String)

setId

public void setId(String id)
Sets id attribute.

パラメータ:
id - id attribute.
関連項目:
QueryResponse.getId()

getCredentials

public List getCredentials()
Gets credentials.

戻り値:
List of com.sun.identity.liberty.ws.security.SecurityAssertion objects.
関連項目:
QueryResponse.setCredentials(List)

setCredentials

public void setCredentials(List credentials)
Sets credentials.

パラメータ:
credentials - List of com.sun.identity.liberty.ws.security.SecurityAssertion objects.
関連項目:
QueryResponse.getCredentials()

toString

public String toString()
Returns formatted string of the QueryResponse.

オーバーライド:
クラス Object 内の toString
戻り値:
formatted string of the QueryResponse.