Package org.opends.server.types
Class Control
- java.lang.Object
-
- org.opends.server.types.Control
-
- Direct Known Subclasses:
AccountUsableRequestControl,AccountUsableResponseControl,AuthorizationIdentityResponseControl,ChangeNumberControlPlugin.ChangeNumberControl,EntryChangelogNotificationControl,EntryChangeNotificationControl,ExternalChangelogRequestControl,GetEffectiveRightsRequestControl,LDAPAssertionRequestControl,LDAPControl,LDAPPostReadRequestControl,LDAPPostReadResponseControl,LDAPPreReadRequestControl,LDAPPreReadResponseControl,MatchedValuesControl,PagedResultsControl,PasswordExpiredControl,PasswordExpiringControl,PasswordPolicyRequestControl,PasswordPolicyResponseControl,PersistentSearchControl,ProxiedAuthV1Control,ProxiedAuthV2Control,ReplicationRepairRequestControl,ServerSideSortRequestControl,ServerSideSortResponseControl,SubentriesControl,SubtreeDeleteControl,TransactionIdControl,VLVRequestControl,VLVResponseControl
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=true, mayInvoke=true) public abstract class Control extends Object
This class defines a data structure that holds information about a control that can be included in a request or response.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetOID()Retrieves the OID for this control.booleanisCritical()Indicates whether this control should be considered critical in processing the request.StringtoString()Retrieves a string representation of this control.voidtoString(StringBuilder buffer)Appends a string representation of this control to the provided buffer.voidwrite(ASN1Writer writer)Writes this control to an ASN.1 writer.protected abstract voidwriteValue(ASN1Writer writer)Writes this control's value to an ASN.1 writer.
-
-
-
Constructor Detail
-
Control
protected Control(String oid, boolean isCritical)
Creates a new control with no value.- Parameters:
oid- The OID for this control.isCritical- Indicates whether this control should be considered critical in processing the request.
-
-
Method Detail
-
getOID
public final String getOID()
Retrieves the OID for this control.- Returns:
- The OID for this control.
-
isCritical
public final boolean isCritical()
Indicates whether this control should be considered critical in processing the request.- Returns:
trueif this code should be considered critical, orfalseif not.
-
toString
public final String toString()
Retrieves a string representation of this control.
-
write
public final void write(ASN1Writer writer) throws IOException
Writes this control to an ASN.1 writer.- Parameters:
writer- The ASN.1 writer to use.- Throws:
IOException- If a problem occurs while writing to the stream.
-
writeValue
protected abstract 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.- Parameters:
writer- The ASN.1 writer to use.- Throws:
IOException- If a problem occurs while writing to the stream.
-
toString
public void toString(StringBuilder buffer)
Appends a string representation of this control to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-
-