|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.types.Control
@PublicAPI(stability=UNCOMMITTED,
mayInstantiate=true,
mayExtend=true,
mayInvoke=true)
public class ControlThis class defines a data structure that holds information about a control that can be included in a request or response.
| Constructor Summary | |
|---|---|
Control(java.lang.String oid,
boolean isCritical)
Creates a new control with no value. |
|
Control(java.lang.String oid,
boolean isCritical,
ASN1OctetString value)
Creates a new control with the specified information. |
|
| Method Summary | |
|---|---|
java.lang.String |
getOID()
Retrieves the OID for this control. |
ASN1OctetString |
getValue()
Retrieves the value for this control. |
boolean |
hasValue()
Indicates whether this control has a value. |
boolean |
isCritical()
Indicates whether this control should be considered critical in processing the request. |
void |
setCritical(boolean isCritical)
Specifies whether this control should be considered critical in processing the request. |
void |
setOID(java.lang.String oid)
Specifies the OID for this control. |
void |
setValue(ASN1OctetString value)
Specifies the value for this control. |
java.lang.String |
toString()
Retrieves a string representation of this control. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this control to the provided buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Control(java.lang.String oid,
boolean isCritical)
oid - The OID for this control.isCritical - Indicates whether this control should be
considered critical in processing the
request.
public Control(java.lang.String oid,
boolean isCritical,
ASN1OctetString value)
oid - The OID for this control.isCritical - Indicates whether this control should be
considered critical in processing the
request.value - The value for this control.| Method Detail |
|---|
public final java.lang.String getOID()
public final void setOID(java.lang.String oid)
oid - The OID for this control.public final boolean isCritical()
true if this code should be considered
critical, or false if not.public final void setCritical(boolean isCritical)
isCritical - Specifies whether this control should be
considered critical in processing the
request.public final ASN1OctetString getValue()
null if
there is no value.public final boolean hasValue()
true if this control has a value, or
false if it does not.public final void setValue(ASN1OctetString value)
value - The value for this control.public java.lang.String toString()
toString in class java.lang.Objectpublic void toString(java.lang.StringBuilder buffer)
buffer - The buffer to which the information should be
appended.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||