Package org.ldaptive
Class AddOperation
- All Implemented Interfaces:
Operation<AddRequest,
AddResponse>
Executes an ldap add operation.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ldaptive.AbstractOperation
AbstractOperation.AbstractBuilder<B,
T extends AbstractOperation> -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AddOperation
(ConnectionFactory factory) Creates a new add operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic AddOperation.Builder
builder()
Creates a builder for this class.execute
(AddRequest request) Executes an add request.static AddResponse
execute
(ConnectionFactory factory, AddRequest request) Executes an add request.send
(AddRequest request) Sends an add request.static OperationHandle
<AddRequest, AddResponse> send
(ConnectionFactory factory, AddRequest request) Sends an add request.Methods inherited from class org.ldaptive.AbstractOperation
configureHandle, configureRequest, getConnectionFactory, getControlHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferralHandlers, getRequestHandlers, getResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, setConnectionFactory, setControlHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferralHandlers, setRequestHandlers, setResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlers, toString
-
Constructor Details
-
AddOperation
public AddOperation()Default constructor. -
AddOperation
Creates a new add operation.- Parameters:
factory
- connection factory
-
-
Method Details
-
send
Sends an add request. SeeOperationHandle.send()
.- Parameters:
request
- add request- Returns:
- operation handle
- Throws:
LdapException
- if the connection cannot be opened
-
send
public static OperationHandle<AddRequest,AddResponse> send(ConnectionFactory factory, AddRequest request) throws LdapException Sends an add request. SeeOperationHandle.send()
.- Parameters:
factory
- connection factoryrequest
- add request- Returns:
- operation handle
- Throws:
LdapException
- if the connection cannot be opened
-
execute
Executes an add request. SeeOperationHandle.execute()
.- Parameters:
request
- add request- Returns:
- add result
- Throws:
LdapException
- if the connection cannot be opened
-
execute
public static AddResponse execute(ConnectionFactory factory, AddRequest request) throws LdapException Executes an add request. SeeOperationHandle.execute()
.- Parameters:
factory
- connection factoryrequest
- add request- Returns:
- add result
- Throws:
LdapException
- if the connection cannot be opened
-
builder
Creates a builder for this class.- Returns:
- new builder
-