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