@NotExtensible @Mutable @ThreadSafety(level=NOT_THREADSAFE) public class LDAPSearchConstraints extends LDAPConstraints
LDAPConnectionOptions
class should be used
instead.Constructor and Description |
---|
LDAPSearchConstraints()
Creates a new set of search constraints with the default settings.
|
LDAPSearchConstraints(int msLimit,
int dereference,
int maxResults,
boolean doReferrals,
int batchSize,
LDAPRebind rebindProc,
int hopLimit)
Creates a new set of search constraints with the specified information.
|
LDAPSearchConstraints(int msLimit,
int timeLimit,
int dereference,
int maxResults,
boolean doReferrals,
int batchSize,
LDAPBind bindProc,
int hopLimit)
Creates a new set of search constraints with the specified information.
|
LDAPSearchConstraints(int msLimit,
int timeLimit,
int dereference,
int maxResults,
boolean doReferrals,
int batchSize,
LDAPRebind rebindProc,
int hopLimit)
Creates a new set of search constraints with the specified information.
|
Modifier and Type | Method and Description |
---|---|
LDAPSearchConstraints |
duplicate()
Creates a duplicate of this search constraints object.
|
int |
getBatchSize()
Retrieves the suggested batch size to use when retrieving results.
|
int |
getDereference()
Retrieves the alias dereferencing policy that should be used.
|
int |
getMaxResults()
Retrieves the maximum number of entries that should be returned for a
search.
|
int |
getServerTimeLimit()
Retrieves the maximum length of time in seconds that the server should
spend processing a search.
|
void |
setBatchSize(int batchSize)
Specifies the suggested batch size to use when retrieving results.
|
void |
setDereference(int dereference)
Specifies the alias dereferencing policy that should be used.
|
void |
setMaxResults(int maxResults)
Specifies the maximum number of entries that should be returned for a
search.
|
void |
setServerTimeLimit(int limit)
Specifies the maximum length of time in seconds that the server should
spend processing a search.
|
java.lang.String |
toString()
Retrieves a string representation of this search constraints object.
|
getBindProc, getClientControls, getHopLimit, getRebindProc, getReferrals, getServerControls, getTimeLimit, setBindProc, setClientControls, setClientControls, setHopLimit, setRebindProc, setReferrals, setServerControls, setServerControls, setTimeLimit
public LDAPSearchConstraints()
public LDAPSearchConstraints(int msLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, @Nullable LDAPRebind rebindProc, int hopLimit)
msLimit
- The maximum length of time in milliseconds to spend
waiting for the response.dereference
- The policy to use when dereferencing aliases.maxResults
- The maximum number of entries to return from the
server.doReferrals
- Indicates whether to follow referrals.batchSize
- The batch size to use when retrieving results.rebindProc
- The object to use to obtain information for
authenticating the connection for use when following
referrals.hopLimit
- The maximum number of hops to take when following
referrals.public LDAPSearchConstraints(int msLimit, int timeLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, @Nullable LDAPRebind rebindProc, int hopLimit)
msLimit
- The maximum length of time in milliseconds to spend
waiting for the response.timeLimit
- The maximum length of time in seconds the server
should spend processing the request.dereference
- The policy to use when dereferencing aliases.maxResults
- The maximum number of entries to return from the
server.doReferrals
- Indicates whether to follow referrals.batchSize
- The batch size to use when retrieving results.rebindProc
- The object to use to obtain information for
authenticating the connection for use when following
referrals.hopLimit
- The maximum number of hops to take when following
referrals.public LDAPSearchConstraints(int msLimit, int timeLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, @Nullable LDAPBind bindProc, int hopLimit)
msLimit
- The maximum length of time in milliseconds to spend
waiting for the response.timeLimit
- The maximum length of time in seconds the server
should spend processing the request.dereference
- The policy to use when dereferencing aliases.maxResults
- The maximum number of entries to return from the
server.doReferrals
- Indicates whether to follow referrals.batchSize
- The batch size to use when retrieving results.bindProc
- The object to use to obtain authenticating the
connection for use when following referrals.hopLimit
- The maximum number of hops to take when following
referrals.public int getBatchSize()
public void setBatchSize(int batchSize)
batchSize
- The suggested batch size to use when retrieving results.public int getDereference()
public void setDereference(int dereference)
dereference
- The alias dereferencing policy that should be used.public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults
- The maximum number of entries that should be returned
for a search.public int getServerTimeLimit()
public void setServerTimeLimit(int limit)
limit
- The maximum length of time in seconds that the server should
spend processing a search.@NotNull public LDAPSearchConstraints duplicate()
duplicate
in class LDAPConstraints
@NotNull public java.lang.String toString()
toString
in class LDAPConstraints