@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class JNDIExtendedRequest extends java.lang.Object implements javax.naming.ldap.ExtendedRequest
ExtendedRequest
,
Serialized FormConstructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public JNDIExtendedRequest(@NotNull ExtendedRequest r)
r
- The SDK extended request to use to create this JNDI extended
request.public JNDIExtendedRequest(@NotNull 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.@NotNull public java.lang.String getID()
getID
in interface javax.naming.ldap.ExtendedRequest
@Nullable public byte[] getEncodedValue()
getEncodedValue
in interface javax.naming.ldap.ExtendedRequest
null
if
there is no value.@NotNull public JNDIExtendedResponse createExtendedResponse(@Nullable java.lang.String id, @Nullable 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.@NotNull public ExtendedRequest toSDKExtendedRequest()
@Nullable public static ExtendedRequest toSDKExtendedRequest(@Nullable 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.