|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.search.controls.PSearchControl
public class PSearchControl
A persistence search object
Field Summary | |
---|---|
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 |
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object |
---|
parent |
Constructor Summary | |
---|---|
PSearchControl()
Default constructor |
Method Summary | |
---|---|
int |
computeLength()
Compute the PSearchControl length 0x30 L1 | +--> 0x02 0x0(1-4) [0..2^31-1] (changeTypes) +--> 0x01 0x01 [0x00 | 0xFF] (changeOnly) +--> 0x01 0x01 [0x00 | 0xFF] (returnRCs) |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encodes the persistent search control. |
int |
getChangeTypes()
|
boolean |
isChangesOnly()
|
boolean |
isReturnECs()
|
void |
setChangesOnly(boolean changesOnly)
|
void |
setChangeTypes(int changeTypes)
|
void |
setReturnECs(boolean returnECs)
|
java.lang.String |
toString()
Return a String representing this PSearchControl. |
Methods inherited from class org.apache.directory.shared.asn1.Asn1Object |
---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public PSearchControl()
Method Detail |
---|
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()
computeLength
in class Asn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws EncoderException
encode
in class Asn1Object
buffer
- The encoded sink
EncoderException
- If anything goes wrong.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |