public class NamingResponse extends Object
NamingResponse
class represents a NamingResponse XML
document. The NamingResponse DTD is defined as the following:
<?xml version="1.0"> < !DOCTYPE NamingResponse [ < !ELEMENT NamingResponse (GetNamingProfile)> < !ATTLIST NamingResponse vers CDATA #REQUIRED reqid CDATA #REQUIRED> < !ELEMENT GetNamingProfile (Attribute*|Exception)> < !ELEMENT Attribute EMPTY> < !ATTLIST Attribute name CDATA #REQUIRED value CDATA #REQUIRED> < !ELEMENT Exception (#PCDATA)> ]>
Constructor and Description |
---|
NamingResponse(String reqid)
This constructor shall only be used at the server side to construct a
NamingResponse object.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String name)
Gets the attribute.
|
String |
getException()
Gets the exception.
|
Hashtable |
getNamingTable()
Gets the naming table.
|
String |
getRequestID()
Gets the request ID.
|
String |
getResponseVersion()
Gets the response version.
|
static NamingResponse |
parseXML(String xml)
This method is used primarily at the client side to reconstruct a
NamingResponse object based on the XML document received from server.
|
void |
replaceURI(String uri)
Replaces "%uri" with the acutal URI
|
void |
setAttribute(String name,
String value)
Sets the naming attribute.
|
void |
setException(String ex)
Sets the exception.
|
void |
setNamingTable(Hashtable table)
Sets the naming table.
|
String |
toXMLString()
This method translates the response to an XML document String based on
the NamingResponse DTD described above.
|
public NamingResponse(String reqid)
reqid
- The original request ID.public static NamingResponse parseXML(String xml)
xml
- The NamingResponse XML document String.public String getResponseVersion()
public String getRequestID()
public void setAttribute(String name, String value)
name
- attribute name.value
- attribute value.public String getAttribute(String name)
name
- attribute name.public Hashtable getNamingTable()
public void setNamingTable(Hashtable table)
public void setException(String ex)
ex
- A string representing the exception.public String getException()
public void replaceURI(String uri)
public String toXMLString()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.