Package org.opends.server.controls
Class LDAPPreReadRequestControl
- java.lang.Object
-
- org.opends.server.types.Control
-
- org.opends.server.controls.LDAPPreReadRequestControl
-
public class LDAPPreReadRequestControl extends Control
This class implements the pre-read request control as defined in RFC 4527. This control makes it possible to retrieve an entry in the state that it held immediately before a modify, delete, or modify DN operation. It may specify a specific set of attributes that should be included in that entry. The entry will be encoded in a corresponding response control.
-
-
Field Summary
Fields Modifier and Type Field Description static ControlDecoder<LDAPPreReadRequestControl>DECODERThe Control Decoder that can be used to decode this control.
-
Constructor Summary
Constructors Constructor Description LDAPPreReadRequestControl(boolean isCritical, Set<String> rawAttributes)Creates a new instance of this LDAP pre-read request control with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getRawAttributes()Retrieves the raw, unprocessed set of requested attributes.Set<String>getRequestedAttributes()Retrieves the set of processed attributes that have been requested for inclusion in the entry that is returned.voidtoString(StringBuilder buffer)Appends a string representation of this LDAP pre-read request 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<LDAPPreReadRequestControl> DECODER
The Control Decoder that can be used to decode this control.
-
-
Constructor Detail
-
LDAPPreReadRequestControl
public LDAPPreReadRequestControl(boolean isCritical, Set<String> rawAttributes)Creates a new instance of this LDAP pre-read request control with the provided information.- Parameters:
isCritical- Indicates whether support for this control should be considered a critical part of the server processing.rawAttributes- The set of raw attributes to return in the entry. A null or empty set will indicates that all user attributes should be returned.
-
-
Method Detail
-
writeValue
public void writeValue(ASN1Writer writer) throws IOException
Writes 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 output stream to write to.- Throws:
IOException- If a problem occurs while writing to the stream.
-
getRawAttributes
public Set<String> getRawAttributes()
Retrieves the raw, unprocessed set of requested attributes. It must not be altered by the caller without callingsetRawAttributeswith the updated set.- Returns:
- The raw, unprocessed set of attributes.
-
getRequestedAttributes
public Set<String> getRequestedAttributes()
Retrieves the set of processed attributes that have been requested for inclusion in the entry that is returned.- Returns:
- The set of processed attributes that have been requested for inclusion in the entry that is returned.
-
toString
public void toString(StringBuilder buffer)
Appends a string representation of this LDAP pre-read request control to the provided buffer.
-
-