C
- The decorated Controlpublic class DsmlControl<C extends Control> extends Object implements Control, DsmlDecorator<C>
Control
.Constructor and Description |
---|
DsmlControl(LdapApiService codec,
C decorated)
Creates a new instance of DsmlControl
|
Modifier and Type | Method and Description |
---|---|
LdapApiService |
getCodecService() |
C |
getDecorated()
Gets the Message this DsmlDecorator decorates.
|
String |
getOid() |
byte[] |
getValue()
Gets the control value
|
boolean |
hasValue()
Checks to see if this DSML control decorator has a value.
|
boolean |
isCritical()
Tells if the control is critical or not.
|
void |
setCritical(boolean isCritical)
Sets the critical flag which determines whether or not this control is
critical for the correct operation of a request or response message.
|
void |
setValue(byte[] value)
Sets the encoded control value
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Converts the request/reponse to its XML representation in the DSMLv2 format
|
public DsmlControl(LdapApiService codec, C decorated)
codec
- The Codec used to encode/decode the Controldecorated
- The decorated controlpublic LdapApiService getCodecService()
public boolean hasValue()
public byte[] getValue()
public void setValue(byte[] value)
value
- The encoded control value to storepublic boolean isCritical()
isCritical
in interface Control
true
if the control is critical, false
otherwisepublic void setCritical(boolean isCritical)
setCritical
in interface Control
isCritical
- true if the control is critical false otherwise.public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml
in interface DsmlDecorator<C extends Control>
root
- the root dom4j Elementpublic C getDecorated()
getDecorated
in interface DsmlDecorator<C extends Control>
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.