Package org.ldaptive
Class AbstractOperationConnectionValidator.AbstractBuilder<Q extends Request,S extends Result,B,T extends AbstractOperationConnectionValidator<Q,S>>
- java.lang.Object
-
- org.ldaptive.AbstractConnectionValidator.AbstractBuilder<B,T>
-
- org.ldaptive.AbstractOperationConnectionValidator.AbstractBuilder<Q,S,B,T>
-
- Type Parameters:
Q
- type of requestS
- type of resultB
- type of builderT
- type of validator
- Direct Known Subclasses:
CompareConnectionValidator.Builder
,SearchConnectionValidator.Builder
- Enclosing class:
- AbstractOperationConnectionValidator<Q extends Request,S extends Result>
protected abstract static class AbstractOperationConnectionValidator.AbstractBuilder<Q extends Request,S extends Result,B,T extends AbstractOperationConnectionValidator<Q,S>> extends AbstractConnectionValidator.AbstractBuilder<B,T>
Base class for operation validator builders.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.AbstractConnectionValidator.AbstractBuilder
object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuilder(T t)
Creates a new abstract builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description B
request(Q request)
Sets the request to use for validation.protected abstract B
self()
Returns this builder.B
validResultCodes(ResultCode... codes)
Sets the result codes to use for validation.-
Methods inherited from class org.ldaptive.AbstractConnectionValidator.AbstractBuilder
build, onFailure, onSuccess, period, timeout, timeoutIsFailure
-
-
-
-
Constructor Detail
-
AbstractBuilder
protected AbstractBuilder(T t)
Creates a new abstract builder.- Parameters:
t
- validator to build
-
-
Method Detail
-
self
protected abstract B self()
Returns this builder.- Specified by:
self
in classAbstractConnectionValidator.AbstractBuilder<B,T extends AbstractOperationConnectionValidator<Q,S>>
- Returns:
- builder
-
request
public B request(Q request)
Sets the request to use for validation.- Parameters:
request
- operation request- Returns:
- this builder
-
validResultCodes
public B validResultCodes(ResultCode... codes)
Sets the result codes to use for validation.- Parameters:
codes
- valid result codes- Returns:
- this builder
-
-