public class NamingRequest extends Object
NamingRequest
class represents a NamingRequest XML
document. The NamingRequest DTD is defined as the following:
<?xml version="1.0"> < !DOCTYPE NamingRequest [ < !ELEMENT NamingRequest (GetNamingProfile)> < !ATTLIST NamingRequest vers CDATA #REQUIRED reqid CDATA #REQUIRED sessid CDATA #REQUIRED> < !ELEMENT GetNamingProfile EMPTY> ]>
Modifier and Type | Field and Description |
---|---|
static String |
reqVersion |
Constructor and Description |
---|
NamingRequest(String ver)
This constructor shall only be used at the client side to construct a
NamingRequest object.
|
Modifier and Type | Method and Description |
---|---|
String |
getPreferredNamingURL()
Gets the PreferredNamingURL.
|
String |
getRequestID()
Gets the request ID.
|
String |
getRequestVersion()
Gets the request version.
|
String |
getSessionId()
Gets the session ID.
|
static NamingRequest |
parseXML(String xml)
This method is used primarily at the server side to reconstruct a
NamingRequest object based on the XML document received from client.
|
void |
setPreferredNamingURL(String url)
Sets the PreferredNamingURL.
|
void |
setRequestID(String id)
Sets the request ID.
|
void |
setRequestVersion(String version)
Sets the request version.
|
void |
setSessionId(String id)
Sets the session ID.
|
String |
toXMLString()
This method translates the request to an XML document String based on the
NamingRequest DTD described above.
|
public static final String reqVersion
public NamingRequest(String ver)
ver
- The naming request version.public static NamingRequest parseXML(String xml)
xml
- The NamingRequest XML document String.NamingRequest
object.public void setRequestVersion(String version)
version
- A string representing the request version.public String getRequestVersion()
public void setRequestID(String id)
id
- A string representing the request ID.public String getRequestID()
public void setSessionId(String id)
id
- A string representing the session ID.public String getSessionId()
public void setPreferredNamingURL(String url)
url
- A string representing preferred NamingURL by client.public String getPreferredNamingURL()
public String toXMLString()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.