Package org.ldaptive
Class BindOperation
- All Implemented Interfaces:
Operation<BindRequest,BindResponse>
Executes an ldap bind operation.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ldaptive.AbstractOperation
AbstractOperation.AbstractBuilder<B,T extends AbstractOperation> -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BindOperation(ConnectionFactory factory) Creates a new bind operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic BindOperation.Builderbuilder()Creates a builder for this class.static BindOperationcopy(BindOperation operation) Returns a new bind operation with the same properties as the supplied operation.static BindOperationcopy(BindOperation operation, boolean deep) Returns a new bind operation with the same properties as the supplied operation.execute(BindRequest request) Executes a bind request.static BindResponseexecute(ConnectionFactory factory, BindRequest request) Executes a bind request.send(BindRequest request) Sends a bind request.static OperationHandle<BindRequest,BindResponse> send(ConnectionFactory factory, BindRequest request) Sends a bind request.Methods inherited from class org.ldaptive.AbstractOperation
configureHandle, configureRequest, copy, getConnectionFactory, getControlHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferralHandlers, getReferralResultHandler, getRequestHandlers, getResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, setConnectionFactory, setControlHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferralHandlers, setReferralResultHandler, setRequestHandlers, setResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlers, toString
-
Constructor Details
-
BindOperation
public BindOperation()Default constructor. -
BindOperation
Creates a new bind operation.- Parameters:
factory- connection factory
-
-
Method Details
-
send
Sends a bind request. SeeOperationHandle.send().- Parameters:
request- bind request- Returns:
- operation handle
- Throws:
LdapException- if the connection cannot be opened
-
send
public static OperationHandle<BindRequest,BindResponse> send(ConnectionFactory factory, BindRequest request) throws LdapException Sends a bind request. SeeOperationHandle.send().- Parameters:
factory- connection factoryrequest- bind request- Returns:
- operation handle
- Throws:
LdapException- if the connection cannot be opened
-
execute
Executes a bind request. SeeOperationHandle.execute().- Parameters:
request- bind request- Returns:
- bind result
- Throws:
LdapException- if the connection cannot be opened
-
execute
public static BindResponse execute(ConnectionFactory factory, BindRequest request) throws LdapException Executes a bind request. SeeOperationHandle.execute().- Parameters:
factory- connection factoryrequest- bind request- Returns:
- bind result
- Throws:
LdapException- if the connection cannot be opened
-
copy
Returns a new bind operation with the same properties as the supplied operation.- Parameters:
operation- to copy- Returns:
- copy of the supplied bind operation
-
copy
Returns a new bind operation with the same properties as the supplied operation.- Parameters:
operation- to copydeep- whether to make a deep copy- Returns:
- copy of the supplied bind operation
-
builder
Creates a builder for this class.- Returns:
- new builder
-