Class Requests
- java.lang.Object
-
- org.opends.server.protocols.internal.Requests
-
public final class Requests extends Object
This class contains various methods for creating and manipulating requests.All copy constructors of the form
copyOfXXXRequestperform deep copies of their request parameter. More specifically, any controls, modifications, and attributes contained within the response will be duplicated.Similarly, all unmodifiable views of request returned by methods of the form
unmodifiableXXXRequestreturn deep unmodifiable views of their request parameter. More specifically, any controls, modifications, and attributes contained within the returned request will be unmodifiable.- See Also:
Requests
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SearchRequestnewSearchRequest(String name, SearchScope scope, String filter)Return a new search request object.static SearchRequestnewSearchRequest(DN name, SearchScope scope)Return a new search request object.static SearchRequestnewSearchRequest(DN name, SearchScope scope, String filter)Return a new search request object.static SearchRequestnewSearchRequest(DN name, SearchScope scope, SearchFilter filter, String... attributeDescriptions)Creates a new search request using the provided distinguished name, scope, and filter.
-
-
-
Method Detail
-
newSearchRequest
public static SearchRequest newSearchRequest(DN name, SearchScope scope, SearchFilter filter, String... attributeDescriptions) throws NullPointerException
Creates a new search request using the provided distinguished name, scope, and filter.- Parameters:
name- The distinguished name of the base entry relative to which the search is to be performed.scope- The scope of the search.filter- The filter that defines the conditions that must be fulfilled in order for an entry to be returned.attributeDescriptions- The names of the attributes to be included with each entry.- Returns:
- The new search request.
- Throws:
NullPointerException- If thename,scope, orfilterwerenull.
-
newSearchRequest
public static SearchRequest newSearchRequest(String name, SearchScope scope, String filter) throws DirectoryException
Return a new search request object.- Parameters:
name- the dnscope- the search scopefilter- the search filter- Returns:
- a new search request object
- Throws:
DirectoryException- if a problem occurs- See Also:
newSearchRequest(DN, SearchScope, SearchFilter, String...)
-
newSearchRequest
public static SearchRequest newSearchRequest(DN name, SearchScope scope, String filter) throws DirectoryException
Return a new search request object.- Parameters:
name- the dnscope- the search scopefilter- the search filter- Returns:
- a new search request object
- Throws:
DirectoryException- if a problem occurs- See Also:
newSearchRequest(DN, SearchScope, SearchFilter, String...)
-
newSearchRequest
public static SearchRequest newSearchRequest(DN name, SearchScope scope)
Return a new search request object.- Parameters:
name- the dnscope- the search scope- Returns:
- a new search request object
- See Also:
newSearchRequest(DN, SearchScope, SearchFilter, String...)
-
-