|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.migrate.jndi.JNDIExtendedResponse
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class JNDIExtendedResponse
This class provides a mechanism for converting between an LDAP extended response as used in JNDI and one used in the UnboundID LDAP SDK for Java.
ExtendedResult
,
Serialized FormConstructor Summary | |
---|---|
JNDIExtendedResponse(javax.naming.ldap.ExtendedResponse r)
Creates a new JNDI extended response from the provided JNDI extended response. |
|
JNDIExtendedResponse(ExtendedResult r)
Creates a new JNDI extended response from the provided SDK extended result. |
Method Summary | |
---|---|
byte[] |
getEncodedValue()
Retrieves the encoded value for this extended response (including the BER type and length), if available. |
java.lang.String |
getID()
Retrieves the object identifier for this extended response, if available. |
ExtendedResult |
toSDKExtendedResult()
Retrieves an LDAP SDK extended result that is the equivalent of this JNDI extended response. |
static ExtendedResult |
toSDKExtendedResult(javax.naming.ldap.ExtendedResponse r)
Retrieves an LDAP SDK extended result that is the equivalent of the provided JNDI extended response. |
java.lang.String |
toString()
Retrieves a string representation of this JNDI extended response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JNDIExtendedResponse(ExtendedResult r)
r
- The SDK extended result to use to create this JNDI extended
response.public JNDIExtendedResponse(javax.naming.ldap.ExtendedResponse r) throws javax.naming.NamingException
r
- The JNDI extended response to use to create this JNDI extended
response.
javax.naming.NamingException
- If a problem occurs while trying to create this
JNDI extended response.Method Detail |
---|
public java.lang.String getID()
getID
in interface javax.naming.ldap.ExtendedResponse
null
if there is no OID.public byte[] getEncodedValue()
getEncodedValue
in interface javax.naming.ldap.ExtendedResponse
null
if
there is no value.public ExtendedResult toSDKExtendedResult()
public static ExtendedResult toSDKExtendedResult(javax.naming.ldap.ExtendedResponse r) throws javax.naming.NamingException
r
- The JNDI extended response to convert to an LDAP SDK extended
result.
javax.naming.NamingException
- If a problem occurs while decoding the provided
JNDI extended response as an SDK extended result.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |