public class DsmlControl<E extends Control> extends Object implements Control, DsmlDecorator<E>
Control
.Modifier and Type | Field and Description |
---|---|
protected byte[] |
value
The encoded value of the control.
|
Constructor and Description |
---|
DsmlControl(LdapApiService codec,
E decorated) |
Modifier and Type | Method and Description |
---|---|
LdapApiService |
getCodecService()
Gets the LDAP codec service.
|
E |
getDecorated()
Gets the Message this DsmlDecorator decorates.
|
String |
getOid() |
byte[] |
getValue()
Get 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)
Set the encoded control value
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Converts the request/reponse to its XML representation in the DSMLv2 format
|
protected byte[] value
public DsmlControl(LdapApiService codec, E decorated)
public 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<E extends Control>
root
- the root dom4j Elementpublic E getDecorated()
getDecorated
in interface DsmlDecorator<E extends Control>
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.