Package org.ldaptive
Class AbstractRequestMessage.AbstractBuilder<B,T extends AbstractRequestMessage>
- java.lang.Object
-
- org.ldaptive.AbstractRequestMessage.AbstractBuilder<B,T>
-
- Type Parameters:
B
- type of builderT
- type of message
- Direct Known Subclasses:
AbandonRequest.Builder
,AddRequest.Builder
,AnonymousBindRequest.Builder
,CompareRequest.Builder
,DeleteRequest.Builder
,ExtendedRequest.Builder
,ModifyDnRequest.Builder
,ModifyRequest.Builder
,SaslBindRequest.Builder
,SearchRequest.Builder
,SimpleBindRequest.Builder
- Enclosing class:
- AbstractRequestMessage
protected abstract static class AbstractRequestMessage.AbstractBuilder<B,T extends AbstractRequestMessage> extends Object
Base class for request builders.
-
-
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 T
build()
Returns the message.B
controls(RequestControl... cntrls)
Sets controls on the message.B
responseTimeout(Duration time)
Sets the response timeout on the message.protected abstract B
self()
Returns this builder.
-
-
-
Field Detail
-
object
protected final T extends AbstractRequestMessage object
Message to build.
-
-
Constructor Detail
-
AbstractBuilder
protected AbstractBuilder(T t)
Creates a new abstract builder.- Parameters:
t
- message to build
-
-
Method Detail
-
self
protected abstract B self()
Returns this builder.- Returns:
- builder
-
controls
public B controls(RequestControl... cntrls)
Sets controls on the message.- Parameters:
cntrls
- controls- Returns:
- this builder
-
responseTimeout
public B responseTimeout(Duration time)
Sets the response timeout on the message.- Parameters:
time
- response timeout- Returns:
- this builder
-
build
public T build()
Returns the message.- Returns:
- message
-
-