|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchRequest
Search request protocol message interface.
| Field Summary | |
|---|---|
static MessageTypeEnum[] |
RESPONSE_TYPES
Different response types that a search request may return. |
| Method Summary | |
|---|---|
SearchRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
SearchRequest |
addAttributes(String... attributes)
Adds some attributes to the set of entry attributes to return. |
SearchRequest |
addControl(Control control)
Adds a control to this Message. |
List<String> |
getAttributes()
Gets a list of the attributes to be returned from each entry which matches the search filter. |
Dn |
getBase()
Gets the search base as a distinguished name. |
AliasDerefMode |
getDerefAliases()
Gets the alias handling parameter. |
ExprNode |
getFilter()
Gets the search filter associated with this search request. |
MessageTypeEnum[] |
getResponseTypes()
Gets the different response types generated by a search request. |
SearchScope |
getScope()
Gets the search scope parameter enumeration. |
long |
getSizeLimit()
A sizelimit that restricts the maximum number of entries to be returned as a result of the search. |
int |
getTimeLimit()
Gets the timelimit that restricts the maximum time (in seconds) allowed for a search. |
boolean |
getTypesOnly()
An indicator as to whether search results will contain both attribute types and values, or just attribute types. |
SearchRequest |
removeAttribute(String attribute)
Removes an attribute to the set of entry attributes to return. |
SearchRequest |
removeControl(Control control)
Deletes a control removing it from this Message. |
SearchRequest |
setBase(Dn baseDn)
Sets the search base as a distinguished name. |
SearchRequest |
setDerefAliases(AliasDerefMode aliasDerefAliases)
Sets the alias handling parameter. |
SearchRequest |
setFilter(ExprNode filter)
Sets the search filter associated with this search request. |
SearchRequest |
setFilter(String filter)
Sets the search filter associated with this search request. |
SearchRequest |
setMessageId(int messageId)
Sets the Message ID for this request |
SearchRequest |
setScope(SearchScope scope)
Sets the search scope parameter enumeration. |
SearchRequest |
setSizeLimit(long entriesMax)
Sets sizelimit that restricts the maximum number of entries to be returned as a result of the search. |
SearchRequest |
setTimeLimit(int secondsMax)
Sets the timelimit that restricts the maximum time (in seconds) allowed for a search. |
SearchRequest |
setTypesOnly(boolean typesOnly)
An indicator as to whether search results will contain both attribute types and values, or just attribute types. |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest |
|---|
getResultResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Field Detail |
|---|
static final MessageTypeEnum[] RESPONSE_TYPES
getResponseTypes()| Method Detail |
|---|
MessageTypeEnum[] getResponseTypes()
getResponseTypes in interface ManyReplyRequest<SearchResultDone>RESPONSE_TYPESDn getBase()
SearchRequest setBase(Dn baseDn)
baseDn - the search base
SearchScope getScope()
SearchRequest setScope(SearchScope scope)
scope - the scope enumeration parameter.
AliasDerefMode getDerefAliases()
SearchRequest setDerefAliases(AliasDerefMode aliasDerefAliases)
aliasDerefAliases - the alias handling parameter enumeration.
long getSizeLimit()
SearchRequest setSizeLimit(long entriesMax)
entriesMax - maximum search result entries to return.
int getTimeLimit()
SearchRequest setTimeLimit(int secondsMax)
secondsMax - the search time limit in seconds.
boolean getTypesOnly()
SearchRequest setTypesOnly(boolean typesOnly)
typesOnly - true for only types, false for types and values.
ExprNode getFilter()
SearchRequest setFilter(ExprNode filter)
filter - the expression node for the root of the filter expression tree.
SearchRequest setFilter(String filter)
throws LdapException
filter - the expression node for the root of the filter expression tree.
LdapExceptionList<String> getAttributes()
SearchRequest addAttributes(String... attributes)
attributes - the attributes description or identifier.
SearchRequest removeAttribute(String attribute)
attribute - the attribute description or identifier.
SearchRequest setMessageId(int messageId)
setMessageId in interface MessagemessageId - The message Id
SearchRequest addControl(Control control)
throws MessageException
addControl in interface Messagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
SearchRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface Messagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
SearchRequest removeControl(Control control)
throws MessageException
removeControl in interface Messagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||