public class Query extends Object
Query
represents a discovery Query object.
The following schema fragment specifies the expected content within the
Query
object.
<xs:element name="Query" type="Query"/> <complexType name="Query"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <group ref="{urn:liberty:disco:2003-08}ResourceIDGroup"/> <element name="RequestedServiceType" maxOccurs="unbounded" minOccurs="0"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{urn:liberty:disco:2003-08}ServiceType"/> <element ref="{urn:liberty:disco:2003-08}Options" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType> </element> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
Query(Element root)
Constructor.
|
Query(EncryptedResourceID resourceID,
List RequestedService)
Constructor.
|
Query(ResourceID resourceID,
List RequestedService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
EncryptedResourceID |
getEncryptedResourceID()
Gets the encrypted resource ID of the discovery resource to be queried.
|
String |
getId()
Gets id attribute.
|
List |
getRequestedServiceType()
Gets the list of the requested service types.
|
ResourceID |
getResourceID()
Gets the resource ID of the discovery resource to be queried.
|
void |
setEncryptedResourceID(EncryptedResourceID value)
Sets the encrypted resource ID of the discovery resource to be queried.
|
void |
setId(String id)
Sets id attribute.
|
void |
setRequestedServiceType(List requestedService)
Sets the list of the requested service types.
|
void |
setResourceID(ResourceID resourceID)
Sets the resource ID of the discovery resource to be queried
|
String |
toString()
Returns formatted string of the
Query object. |
public Query(ResourceID resourceID, List RequestedService)
resourceID
- resource ID of the discovery resource to be queried.RequestedService
- List of RequestService
object.public Query(EncryptedResourceID resourceID, List RequestedService)
resourceID
- encrypted resource ID of the discovery resource
to be queried.RequestedService
- List of RequestService
object.public Query(Element root) throws DiscoveryException
root
- Query in DOM ElementDiscoveryException
- if error occurspublic String getId()
Query.setId(String)
public void setId(String id)
id
- id attribute.Query.getId()
public EncryptedResourceID getEncryptedResourceID()
Query.setEncryptedResourceID(EncryptedResourceID)
public void setEncryptedResourceID(EncryptedResourceID value)
value
- the encrypted resource ID.Query.getEncryptedResourceID()
public ResourceID getResourceID()
Query.setResourceID(ResourceID)
public void setResourceID(ResourceID resourceID)
resourceID
- the resource ID of the discovery resource to be
queried.Query.getResourceID()
public List getRequestedServiceType()
Query.setRequestedServiceType(List)
public void setRequestedServiceType(List requestedService)
requestedService
- the list of the requested service types to be
set.Query.getRequestedServiceType()
Copyright © 2010-2018, ForgeRock All Rights Reserved.