public class DSMLExtendedOperation extends Object
| Constructor and Description |
|---|
DSMLExtendedOperation(LDAPConnection connection,
Set<String> stringResponses)
Create an instance with the specified LDAP connection.
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedResponse |
doOperation(ObjectFactory objFactory,
ExtendedRequest extendedRequest,
List<Control> controls)
Perform the LDAP EXTENDED operation and send the result back to the
client.
|
boolean |
responseIsString(String oid)
Determine if the response to a given LDAP extended operation (specified by
OID) should be treated as a string.
|
public DSMLExtendedOperation(LDAPConnection connection, Set<String> stringResponses)
connection - The LDAP connection to send the request on.stringResponses - The OIDs of any operations that have results that
should be returned as strings instead of binary.public boolean responseIsString(String oid)
oid - The OID of the extended operation.true if the extended operation is known to return a
string, false otherwise.public ExtendedResponse doOperation(ObjectFactory objFactory, ExtendedRequest extendedRequest, List<Control> controls) throws IOException, LDAPException, org.forgerock.opendj.ldap.DecodeException
objFactory - The object factory for this operation.extendedRequest - The extended request for this operation.controls - Any required controls (e.g. for proxy authz).IOException - If an I/O problem occurs.LDAPException - If an error occurs while interacting with an LDAP
element.org.forgerock.opendj.ldap.DecodeException - If an error occurs while interacting with an ASN.1
element.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.