|
||||||||||
| 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<PersistentSearch>
org.apache.directory.shared.ldap.codec.controls.search.persistentSearch.PersistentSearchDecorator
public class PersistentSearchDecorator
A persistence search object
| Field Summary |
|---|
| 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.PersistentSearch |
|---|
CHANGE_TYPES_MAX, CHANGE_TYPES_MIN, OID |
| Constructor Summary | |
|---|---|
PersistentSearchDecorator(LdapCodecService codec)
Default constructor creates a PersistentSearch Control automatically wrapped in a decorator object inside this container. |
|
PersistentSearchDecorator(LdapCodecService codec,
PersistentSearch control)
Creates a PersistentSearch Control wrapping a supplied PersistentSearch Control. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the PagedSearchControl length, which is the sum of the control length and the value length. |
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control. |
void |
enableNotification(ChangeType changeType)
|
ByteBuffer |
encode(ByteBuffer buffer)
Encodes the persistent search control. |
int |
getChangeTypes()
|
byte[] |
getValue()
Get the control value |
boolean |
isChangesOnly()
|
boolean |
isNotificationEnabled(ChangeType changeType)
|
boolean |
isReturnECs()
|
void |
setChangesOnly(boolean changesOnly)
|
void |
setChangeTypes(int changeTypes)
|
void |
setReturnECs(boolean returnECs)
|
| 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 |
| Constructor Detail |
|---|
public PersistentSearchDecorator(LdapCodecService codec)
public PersistentSearchDecorator(LdapCodecService codec,
PersistentSearch control)
control - The PersistentSearch Control to wrap.| Method Detail |
|---|
public int computeLength()
PersistentSearchDecorator value length : 0x30 L1 | +--> 0x02 0x0(1-4) [0..2^31-1] (changeTypes) +--> 0x01 0x01 [0x00 | 0xFF] (changeOnly) +--> 0x01 0x01 [0x00 | 0xFF] (returnRCs)
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<PersistentSearch>computeLength in class ControlDecorator<PersistentSearch>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<PersistentSearch>encode in class AbstractAsn1Objectbuffer - The encoded sink
EncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<PersistentSearch>getValue in class ControlDecorator<PersistentSearch>public void setChangesOnly(boolean changesOnly)
setChangesOnly in interface PersistentSearchpublic boolean isChangesOnly()
isChangesOnly in interface PersistentSearchpublic void setReturnECs(boolean returnECs)
setReturnECs in interface PersistentSearchpublic boolean isReturnECs()
isReturnECs in interface PersistentSearchpublic void setChangeTypes(int changeTypes)
setChangeTypes in interface PersistentSearchpublic int getChangeTypes()
getChangeTypes in interface PersistentSearchpublic boolean isNotificationEnabled(ChangeType changeType)
isNotificationEnabled in interface PersistentSearchpublic void enableNotification(ChangeType changeType)
enableNotification in interface PersistentSearch
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
decode in interface CodecControl<PersistentSearch>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 | |||||||||