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