Package org.opends.server.controls
Class LDAPAssertionRequestControl
- java.lang.Object
-
- org.opends.server.types.Control
-
- org.opends.server.controls.LDAPAssertionRequestControl
-
public class LDAPAssertionRequestControl extends Control
This class implements the LDAP assertion request control as defined in RFC 4528. This control makes it possible to conditionally perform an operation if a given assertion is true. In particular, the associated operation should only be processed if the target entry matches the filter contained in this control.
-
-
Field Summary
Fields Modifier and Type Field Description static ControlDecoder<LDAPAssertionRequestControl>DECODERThe Control Decoder that can be used to decode this control.
-
Constructor Summary
Constructors Constructor Description LDAPAssertionRequestControl(boolean isCritical, LDAPFilter rawFilter)Creates a new instance of this LDAP assertion request control with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LDAPFiltergetRawFilter()Retrieves the raw, unparsed filter from the request control.SearchFiltergetSearchFilter()Retrieves the processed search filter for this control.voidtoString(StringBuilder buffer)Appends a string representation of this control to the provided buffer.voidwriteValue(ASN1Writer writer)Writes this control's value to an ASN.1 writer.-
Methods inherited from class org.opends.server.types.Control
getOID, isCritical, toString, write
-
-
-
-
Field Detail
-
DECODER
public static final ControlDecoder<LDAPAssertionRequestControl> DECODER
The Control Decoder that can be used to decode this control.
-
-
Constructor Detail
-
LDAPAssertionRequestControl
public LDAPAssertionRequestControl(boolean isCritical, LDAPFilter rawFilter)Creates a new instance of this LDAP assertion request control with the provided information.- Parameters:
isCritical- Indicates whether support for this control should be considered a critical part of the server processing.rawFilter- The unparsed LDAP search filter contained in the request from the client.
-
-
Method Detail
-
writeValue
public void writeValue(ASN1Writer writer) throws IOException
Description copied from class:ControlWrites this control's value to an ASN.1 writer. The value (if any) must be written as an ASN1OctetString.- Specified by:
writeValuein classControl- Parameters:
writer- The ASN.1 writer to use.- Throws:
IOException- If a problem occurs while writing to the stream.
-
getRawFilter
public LDAPFilter getRawFilter()
Retrieves the raw, unparsed filter from the request control.- Returns:
- The raw, unparsed filter from the request control.
-
getSearchFilter
public SearchFilter getSearchFilter() throws DirectoryException
Retrieves the processed search filter for this control.- Returns:
- The processed search filter for this control.
- Throws:
DirectoryException- If a problem occurs while attempting to process the search filter.
-
toString
public void toString(StringBuilder buffer)
Description copied from class:ControlAppends a string representation of this control to the provided buffer.
-
-