|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractOperation<Q,S>
Q - type of ldap requestS - type of ldap responsepublic abstract class AbstractOperation<Q extends Request,S>
Provides common implementation for ldap operations.
| Nested Class Summary | |
|---|---|
class |
AbstractOperation.ReopenOperationExceptionHandler
Exception handler that invokes Connection.reopen(BindRequest) when
an operation exception occurs and then invokes the operation again. |
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
AbstractOperation(Connection conn)
Creates a new abstract operation. |
|
| Method Summary | ||
|---|---|---|
Response<S> |
execute(Q request)
Execute this ldap operation. |
|
protected
|
executeHandlers(Handler<Q,S>[] handlers,
Q request,
S result)
Processes each handler and returns a handler result containing a result processed by all handlers. |
|
protected Connection |
getConnection()
Returns the connection used for this operation. |
|
OperationExceptionHandler<Q,S> |
getOperationExceptionHandler()
Returns the operation exception handler. |
|
OperationResponseHandler<Q,S>[] |
getOperationResponseHandlers()
Returns the operation response handlers. |
|
protected abstract Response<S> |
invoke(Q request)
Call the provider specific implementation of this ldap operation. |
|
void |
setOperationExceptionHandler(OperationExceptionHandler<Q,S> handler)
Sets the operation exception handler. |
|
void |
setOperationResponseHandlers(OperationResponseHandler<Q,S>... handlers)
Sets the operation response handlers. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public AbstractOperation(Connection conn)
conn - to use for this operation| Method Detail |
|---|
protected Connection getConnection()
public OperationExceptionHandler<Q,S> getOperationExceptionHandler()
public void setOperationExceptionHandler(OperationExceptionHandler<Q,S> handler)
handler - operation exception handlerpublic OperationResponseHandler<Q,S>[] getOperationResponseHandlers()
public void setOperationResponseHandlers(OperationResponseHandler<Q,S>... handlers)
handlers - operation response handlers
protected abstract Response<S> invoke(Q request)
throws LdapException
request - ldap request
LdapException - if the invocation fails
public Response<S> execute(Q request)
throws LdapException
execute in interface Operation<Q extends Request,S>request - containing the data required by this operation
LdapException - if the operation fails
protected <Q extends Request,S> HandlerResult<S> executeHandlers(Handler<Q,S>[] handlers,
Q request,
S result)
throws LdapException
Q - type of requestS - type of responsehandlers - to invokerequest - the operation was performed withresult - from the operation
LdapException - if an error occurs processing a handlerpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||