|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
org.apache.directory.api.ldap.model.message.SearchRequestImpl
public class SearchRequestImpl
SearchRequest implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.SearchRequest |
|---|
RESPONSE_TYPES |
| Constructor Summary | |
|---|---|
SearchRequestImpl()
Creates a SearcRequest implementing object used to search the DIT. |
|
| Method Summary | |
|---|---|
SearchRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
SearchRequest |
addAttributes(String... attributesToAdd)
Adds some attributes to the set of entry attributes to return. |
SearchRequest |
addControl(Control control)
Adds a control to this Message. |
boolean |
equals(Object obj)
Checks to see if two search requests are equal. |
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. |
SearchResultDone |
getResultResponse()
If called for the first time, this methohd creates a result containing response object for this 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. |
int |
hashCode()
|
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 base)
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. |
String |
toString()
Return a string the represent a SearchRequest |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public SearchRequestImpl()
| Method Detail |
|---|
public List<String> getAttributes()
getAttributes in interface SearchRequestpublic Dn getBase()
getBase in interface SearchRequestpublic SearchRequest setBase(Dn base)
setBase in interface SearchRequestbase - the search base
public AliasDerefMode getDerefAliases()
getDerefAliases in interface SearchRequestpublic SearchRequest setDerefAliases(AliasDerefMode aliasDerefAliases)
setDerefAliases in interface SearchRequestaliasDerefAliases - the alias handling parameter enumeration.
public ExprNode getFilter()
getFilter in interface SearchRequestpublic SearchRequest setFilter(ExprNode filter)
setFilter in interface SearchRequestfilter - the expression node for the root of the filter expression tree.
public SearchRequest setFilter(String filter)
throws LdapException
setFilter in interface SearchRequestfilter - the expression node for the root of the filter expression tree.
LdapExceptionpublic MessageTypeEnum[] getResponseTypes()
getResponseTypes in interface ManyReplyRequest<SearchResultDone>getResponseTypes in interface SearchRequestSearchRequest.RESPONSE_TYPESpublic SearchScope getScope()
getScope in interface SearchRequestpublic SearchRequest setScope(SearchScope scope)
setScope in interface SearchRequestscope - the scope enumeration parameter.
public long getSizeLimit()
getSizeLimit in interface SearchRequestpublic SearchRequest setSizeLimit(long entriesMax)
setSizeLimit in interface SearchRequestentriesMax - maximum search result entries to return.
public int getTimeLimit()
getTimeLimit in interface SearchRequestpublic SearchRequest setTimeLimit(int secondsMax)
setTimeLimit in interface SearchRequestsecondsMax - the search time limit in seconds.
public boolean getTypesOnly()
getTypesOnly in interface SearchRequestpublic SearchRequest setTypesOnly(boolean typesOnly)
setTypesOnly in interface SearchRequesttypesOnly - true for only types, false for types and values.
public SearchRequest addAttributes(String... attributesToAdd)
addAttributes in interface SearchRequestattributesToAdd - the attributes description or identifier.
public SearchRequest removeAttribute(String attribute)
removeAttribute in interface SearchRequestattribute - the attribute description or identifier.
public SearchResultDone getResultResponse()
getResultResponse in interface ResultResponseRequest<SearchResultDone>public SearchRequest setMessageId(int messageId)
setMessageId in interface MessagesetMessageId in interface SearchRequestsetMessageId in class AbstractMessagemessageId - The message Id
public SearchRequest addControl(Control control)
throws MessageException
addControl in interface MessageaddControl in interface SearchRequestaddControl in class AbstractMessagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public SearchRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface MessageaddAllControls in interface SearchRequestaddAllControls in class AbstractMessagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
public SearchRequest removeControl(Control control)
throws MessageException
removeControl in interface MessageremoveControl in interface SearchRequestremoveControl in class AbstractMessagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.public int hashCode()
hashCode in class AbstractRequestObject.hashCode()public boolean equals(Object obj)
equals in class AbstractRequestobj - the object to check for equality to this SearchRequest
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||