public class RequestSet extends Object
RequestSet
class represents a RequestSet XML document.
The RequestSet DTD is defined as the following:
<?xml version="1.0"> < !-- This DTD is used by PLL --> < !DOCTYPE RequestSet [ < !ELEMENT RequestSet(Request)+> < !ATTLIST RequestSet vers CDATA #REQUIRED svcid CDATA #REQUIRED reqid CDATA #REQUIRED> < !ELEMENT Request(#PCDATA)*> < !ATTLIST Request dtdid CDATA #IMPLIED sid CDATA #IMPLIED> ]>Each RequestSet object contains a version, service ID, request set ID, and a collection of Request objects. The RequestSet views each Request object as a String. This makes it possible that the content of the Request object can be another XML document. The PLL provides a reference Request DTD. Please see class Request for details on the Request DTD. This class also provides a method to aggregate each Request object and returns a RequestSet XML document based on the RequestSet DTD mentioned above.
Request
Constructor and Description |
---|
RequestSet(String service)
This constructor is used primarily at the client side to construct a
RequestSet object for a given service.
|
Modifier and Type | Method and Description |
---|---|
void |
addRequest(Request request)
Adds a Request object to this object.
|
List<Request> |
getRequests()
Gets the Request objects contained in this object.
|
String |
getRequestSetID()
Gets the RequestSet ID for this object.
|
String |
getRequestSetVersion()
Gets the version of the RequestSet.
|
String |
getServiceID()
Gets the service ID of the RequestSet.
|
static RequestSet |
parseXML(String xml)
This method is used primarily at the server side to reconstruct a
RequestSet object based on the XML document received from client.
|
String |
toXMLString()
Returns an XML RequestSet document in String format.
|
public RequestSet(String service)
service
- The name of the service.public static RequestSet parseXML(String xml)
xml
- The RequestSet XML document String.public String getRequestSetVersion()
public String getServiceID()
public String getRequestSetID()
public List<Request> getRequests()
public void addRequest(Request request)
request
- A reference to a Request object.public String toXMLString()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.