Class JNDIExtendedResponse
java.lang.Object
com.unboundid.ldap.sdk.migrate.jndi.JNDIExtendedResponse
- All Implemented Interfaces:
Serializable,ExtendedResponse
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class JNDIExtendedResponse
extends Object
implements ExtendedResponse
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new JNDI extended response from the provided SDK extended result.Creates a new JNDI extended response from the provided JNDI extended response. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Retrieves the encoded value for this extended response (including the BER type and length), if available.getID()Retrieves the object identifier for this extended response, if available.Retrieves an LDAP SDK extended result that is the equivalent of this JNDI extended response.static ExtendedResultRetrieves an LDAP SDK extended result that is the equivalent of the provided JNDI extended response.toString()Retrieves a string representation of this JNDI extended response.
-
Constructor Details
-
JNDIExtendedResponse
Creates a new JNDI extended response from the provided SDK extended result.- Parameters:
r- The SDK extended result to use to create this JNDI extended response.
-
JNDIExtendedResponse
Creates a new JNDI extended response from the provided JNDI extended response.- Parameters:
r- The JNDI extended response to use to create this JNDI extended response.- Throws:
NamingException- If a problem occurs while trying to create this JNDI extended response.
-
-
Method Details
-
getID
Retrieves the object identifier for this extended response, if available.- Specified by:
getIDin interfaceExtendedResponse- Returns:
- The object identifier for this extended response, or
nullif there is no OID.
-
getEncodedValue
Retrieves the encoded value for this extended response (including the BER type and length), if available.- Specified by:
getEncodedValuein interfaceExtendedResponse- Returns:
- The encoded value for this extended response, or
nullif there is no value.
-
toSDKExtendedResult
Retrieves an LDAP SDK extended result that is the equivalent of this JNDI extended response.- Returns:
- An LDAP SDK extended result that is the equivalent of this JNDI extended response.
-
toSDKExtendedResult
@Nullable public static ExtendedResult toSDKExtendedResult(@Nullable ExtendedResponse r) throws NamingException Retrieves an LDAP SDK extended result that is the equivalent of the provided JNDI extended response.- Parameters:
r- The JNDI extended response to convert to an LDAP SDK extended result.- Returns:
- The LDAP SDK extended result converted from the provided JNDI extended response.
- Throws:
NamingException- If a problem occurs while decoding the provided JNDI extended response as an SDK extended result.
-
toString
Retrieves a string representation of this JNDI extended response.
-