|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.migrate.jndi.JNDIExtendedRequest
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class JNDIExtendedRequest
This class provides a mechanism for converting between an LDAP extended request as used in JNDI and one used in the UnboundID LDAP SDK for Java.
ExtendedRequest
,
Serialized FormConstructor Summary | |
---|---|
JNDIExtendedRequest(ExtendedRequest r)
Creates a new JNDI extended request from the provided SDK extended request. |
|
JNDIExtendedRequest(javax.naming.ldap.ExtendedRequest r)
Creates a new JNDI extended request from the provided JNDI extended request. |
Method Summary | |
---|---|
JNDIExtendedResponse |
createExtendedResponse(java.lang.String id,
byte[] berValue,
int offset,
int length)
Creates a JNDI extended response with the provided information. |
byte[] |
getEncodedValue()
Retrieves the encoded value for this extended request (including the BER type and length), if available. |
java.lang.String |
getID()
Retrieves the object identifier for this extended request. |
ExtendedRequest |
toSDKExtendedRequest()
Retrieves an LDAP SDK extended request that is the equivalent of this JNDI extended request. |
static ExtendedRequest |
toSDKExtendedRequest(javax.naming.ldap.ExtendedRequest r)
Retrieves an LDAP SDK extended request that is the equivalent of the provided JNDI extended request. |
java.lang.String |
toString()
Retrieves a string representation of this JNDI extended request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JNDIExtendedRequest(ExtendedRequest r)
r
- The SDK extended request to use to create this JNDI extended
request.public JNDIExtendedRequest(javax.naming.ldap.ExtendedRequest r) throws javax.naming.NamingException
r
- The JNDI extended request to use to create this JNDI extended
request.
javax.naming.NamingException
- If a problem occurs while trying to create this
JNDI extended request.Method Detail |
---|
public java.lang.String getID()
getID
in interface javax.naming.ldap.ExtendedRequest
public byte[] getEncodedValue()
getEncodedValue
in interface javax.naming.ldap.ExtendedRequest
null
if
there is no value.public JNDIExtendedResponse createExtendedResponse(java.lang.String id, byte[] berValue, int offset, int length) throws javax.naming.NamingException
createExtendedResponse
in interface javax.naming.ldap.ExtendedRequest
id
- The object identifier for the response, or null
if there should not be a value.berValue
- A byte array containing the encoded value (including BER
type and length), or null
if the response should
not have a value.offset
- The offset within the provided array at which the value
should begin.length
- The number of bytes contained in the value.
javax.naming.NamingException
- If a problem occurs while creating the response.public ExtendedRequest toSDKExtendedRequest()
public static ExtendedRequest toSDKExtendedRequest(javax.naming.ldap.ExtendedRequest r) throws javax.naming.NamingException
r
- The JNDI extended request to convert to an LDAP SDK extended
request.
javax.naming.NamingException
- If a problem occurs while decoding the provided
JNDI extended request as an SDK extended request.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 |