Package org.opends.server.controls
Class LDAPPostReadRequestControl
- java.lang.Object
-
- org.opends.server.types.Control
-
- org.opends.server.controls.LDAPPostReadRequestControl
-
public class LDAPPostReadRequestControl extends Control
This class implements the post-read request control as defined in RFC 4527. This control makes it possible to retrieve an entry in the state that it held immediately after an add, modify, 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<LDAPPostReadRequestControl>DECODERThe Control Decoder that can be used to decode this control.
-
Constructor Summary
Constructors Constructor Description LDAPPostReadRequestControl(boolean isCritical, Set<String> rawAttributes)Creates a new instance of this LDAP post-read request control with the provided information.LDAPPostReadRequestControl(String oid, boolean isCritical, Set<String> rawAttributes)Creates a new instance of this LDAP post-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 post-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<LDAPPostReadRequestControl> DECODER
The Control Decoder that can be used to decode this control.
-
-
Constructor Detail
-
LDAPPostReadRequestControl
public LDAPPostReadRequestControl(boolean isCritical, Set<String> rawAttributes)Creates a new instance of this LDAP post-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.
-
LDAPPostReadRequestControl
public LDAPPostReadRequestControl(String oid, boolean isCritical, Set<String> rawAttributes)
Creates a new instance of this LDAP post-read request control with the provided information.- Parameters:
oid- The OID to use for this control.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 post-read request control to the provided buffer.
-
-