Interface SearchResultReference
- All Superinterfaces:
Response
A Search Result Reference represents an area not yet explored during a Search
operation.
-
Method Summary
Modifier and TypeMethodDescriptionaddControl(Control control) Adds the provided control to this response.Adds the provided continuation reference URI to this search result reference.<C extends Control>
CgetControl(ControlDecoder<C> decoder, DecodeOptions options) Decodes and returns the first control in this response having an OID corresponding to the provided control decoder.Returns aListcontaining the controls included with this response.getURIs()Returns aListcontaining the continuation reference URIs included with this search result reference.Methods inherited from interface org.forgerock.opendj.ldap.responses.Response
containsControl
-
Method Details
-
addControl
Description copied from interface:ResponseAdds the provided control to this response.- Specified by:
addControlin interfaceResponse- Parameters:
control- The control to be added.- Returns:
- This response.
-
addURI
Adds the provided continuation reference URI to this search result reference.- Parameters:
uri- The continuation reference URI to be added.- Returns:
- This search result reference.
- Throws:
UnsupportedOperationException- If this search result reference does not permit continuation reference URI to be added.NullPointerException- Ifuriwasnull.
-
getControl
<C extends Control> C getControl(ControlDecoder<C> decoder, DecodeOptions options) throws DecodeException Description copied from interface:ResponseDecodes and returns the first control in this response having an OID corresponding to the provided control decoder.- Specified by:
getControlin interfaceResponse- Type Parameters:
C- The type of control to be decoded and returned.- Parameters:
decoder- The control decoder.options- The set of decode options which should be used when decoding the control.- Returns:
- The decoded control, or
nullif the control is not included with this response. - Throws:
DecodeException- If the control could not be decoded because it was malformed in some way (e.g. the control value was missing, or its content could not be decoded).
-
getControls
Description copied from interface:ResponseReturns aListcontaining the controls included with this response. The returnedListmay be modified if permitted by this response.- Specified by:
getControlsin interfaceResponse- Returns:
- A
Listcontaining the controls.
-
getURIs
Returns aListcontaining the continuation reference URIs included with this search result reference. The returnedListmay be modified if permitted by this search result reference.- Returns:
- A
Listcontaining the continuation reference URIs.
-