public class PersistentSearchControl extends AbstractControl
| Modifier and Type | Field and Description |
|---|---|
static int |
CHANGE_TYPE_ADD
Definition of the change types
|
static int |
CHANGE_TYPE_DELETE |
static int |
CHANGE_TYPE_MODDN |
static int |
CHANGE_TYPE_MODIFY |
static int |
CHANGE_TYPES_MAX |
static int |
CHANGE_TYPES_MIN
Min and Max values for the possible combined change types
|
static String |
CONTROL_OID
This control OID
|
decoder, value, valueLengthparent| Constructor and Description |
|---|
PersistentSearchControl()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the PagedSearchControl length, which is the sum
of the control length and the value length.
|
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) |
String |
toString()
Return a String representing this PSearchControl.
|
computeLength, getDecoder, getOid, hasValue, isCritical, setCritical, setValueaddLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic static final String CONTROL_OID
public static final int CHANGE_TYPE_ADD
public static final int CHANGE_TYPE_DELETE
public static final int CHANGE_TYPE_MODIFY
public static final int CHANGE_TYPE_MODDN
public static final int CHANGE_TYPES_MIN
public static final int CHANGE_TYPES_MAX
public void setChangesOnly(boolean changesOnly)
public boolean isChangesOnly()
public void setReturnECs(boolean returnECs)
public boolean isReturnECs()
public void setChangeTypes(int changeTypes)
public int getChangeTypes()
public int computeLength()
PersistentSearchControl 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 CodecControlcomputeLength in class AbstractControlpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in interface CodecControlencode in class AbstractControlbuffer - The encoded sinkEncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface ControlgetValue in class AbstractControlpublic boolean isNotificationEnabled(ChangeType changeType)
public void enableNotification(ChangeType changeType)
public String toString()
toString in class AbstractControlCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.