@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=true, mayInvoke=true) public abstract class Control extends Object implements org.forgerock.opendj.ldap.controls.Control
Modifier | Constructor and Description |
---|---|
protected |
Control(String oid,
boolean isCritical)
Creates a new control with no value.
|
Modifier and Type | Method and Description |
---|---|
String |
getOid()
Retrieves the OID for this control.
|
org.forgerock.opendj.ldap.ByteString |
getValue() |
protected org.forgerock.opendj.ldap.ByteString |
getValueAdapter()
This method can be used by subclasses to implement
Control.getValue() . |
boolean |
isCritical()
Indicates whether this control should be considered critical in processing the request.
|
String |
toString()
Retrieves a string representation of this control.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this control to the provided buffer.
|
void |
write(org.forgerock.opendj.io.Asn1Writer writer)
Writes this control to an ASN.1 writer.
|
protected abstract void |
writeValue(org.forgerock.opendj.io.Asn1Writer writer)
Writes this control's value to an ASN.1 writer.
|
protected Control(String oid, boolean isCritical)
oid
- The OID for this control.isCritical
- Indicates whether this control should be considered critical in processing the request.public final String getOid()
getOid
in interface org.forgerock.opendj.ldap.controls.Control
public final boolean isCritical()
isCritical
in interface org.forgerock.opendj.ldap.controls.Control
true
if this code should be considered critical, or false
if not.public final String toString()
public final void write(org.forgerock.opendj.io.Asn1Writer writer) throws IOException
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the stream.public org.forgerock.opendj.ldap.ByteString getValue()
getValue
in interface org.forgerock.opendj.ldap.controls.Control
protected final org.forgerock.opendj.ldap.ByteString getValueAdapter()
Control.getValue()
.ByteString
representing the value of this controlprotected abstract void writeValue(org.forgerock.opendj.io.Asn1Writer writer) throws IOException
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
buffer
- The buffer to which the information should be appended.Copyright © 2010–2017 ForgeRock AS. All rights reserved.