|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.controls.ControlDecorator<EntryChange>
org.apache.directory.shared.ldap.codec.controls.search.entryChange.EntryChangeDecorator
public class EntryChangeDecorator
An EntryChange implementation, that wraps and decorates the Control with codec specific functionality.
| Field Summary | |
|---|---|
static int |
UNDEFINED_CHANGE_NUMBER
|
| Fields inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
value, valueLength |
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.controls.EntryChange |
|---|
OID |
| Constructor Summary | |
|---|---|
EntryChangeDecorator(LdapCodecService codec)
Creates a new instance of EntryChangeDecoder wrapping a newly created EntryChange Control object. |
|
EntryChangeDecorator(LdapCodecService codec,
EntryChange control)
Creates a new instance of EntryChangeDecorator wrapping the supplied EntryChange Control. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the EntryChangeControl length 0x30 L1 | +--> 0x0A 0x0(1-4) [1|2|4|8] (changeType) [+--> 0x04 L2 previousDN] [+--> 0x02 0x0(1-4) [0..2^63-1] (changeNumber)] |
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control. |
ByteBuffer |
encode(ByteBuffer buffer)
Encodes the entry change control. |
long |
getChangeNumber()
|
ChangeType |
getChangeType()
|
Dn |
getPreviousDn()
|
byte[] |
getValue()
Get the control value |
void |
setChangeNumber(long changeNumber)
|
void |
setChangeType(ChangeType changeType)
|
void |
setPreviousDn(Dn previousDn)
|
| Methods inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control |
|---|
getOid, isCritical, setCritical |
| Field Detail |
|---|
public static final int UNDEFINED_CHANGE_NUMBER
| Constructor Detail |
|---|
public EntryChangeDecorator(LdapCodecService codec)
public EntryChangeDecorator(LdapCodecService codec,
EntryChange control)
control - The EntryChange Control to be decorated.| Method Detail |
|---|
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<EntryChange>computeLength in class ControlDecorator<EntryChange>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<EntryChange>encode in class AbstractAsn1Objectbuffer - The encoded sink
EncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<EntryChange>getValue in class ControlDecorator<EntryChange>public ChangeType getChangeType()
getChangeType in interface EntryChangepublic void setChangeType(ChangeType changeType)
setChangeType in interface EntryChangepublic Dn getPreviousDn()
getPreviousDn in interface EntryChangepublic void setPreviousDn(Dn previousDn)
setPreviousDn in interface EntryChangepublic long getChangeNumber()
getChangeNumber in interface EntryChangepublic void setChangeNumber(long changeNumber)
setChangeNumber in interface EntryChange
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
decode in interface CodecControl<EntryChange>controlBytes - the encoded control bytes
DecoderException - if anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||