|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.liberty.ws.disco.QueryResponse
public class QueryResponse
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(Element root)
Constructor. |
|
QueryResponse(Status status)
Constructor. |
Method Summary | |
---|---|
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 . |
Constructor Detail |
---|
public QueryResponse(Element root) throws DiscoveryException
root
- QueryResponse
DOM element.
DiscoveryException
- if error occurs.public QueryResponse()
public QueryResponse(Status status)
status
- Status of the response.Method Detail |
---|
public Status getStatus()
QueryResponse.setStatus(com.sun.identity.liberty.ws.common.Status)
public void setStatus(Status status)
status
- the Status of the query response.QueryResponse.getStatus()
public List getResourceOffering()
ResourceOffering
.
ResourceOffering
objectsQueryResponse.setResourceOffering(List)
public void setResourceOffering(List offerings)
ResourceOffering
to return.
offerings
- List of ResourceOffering
objectsQueryResponse.getResourceOffering()
public String getId()
QueryResponse.setId(String)
public void setId(String id)
id
- id attribute.QueryResponse.getId()
public List getCredentials()
com.sun.identity.liberty.ws.security.SecurityAssertion
objects.QueryResponse.setCredentials(List)
public void setCredentials(List credentials)
credentials
- List of
com.sun.identity.liberty.ws.security.SecurityAssertion
objects.QueryResponse.getCredentials()
public String toString()
QueryResponse
.
toString
in class Object
QueryResponse
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |