org.apache.directory.shared.ldap.codec.search.controls
Class PSearchControl
java.lang.Object
org.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.search.controls.PSearchControl
- public class PSearchControl
- extends org.apache.directory.shared.asn1.Asn1Object
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object |
parent |
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, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PSearchControl
public PSearchControl()
computeLength
public 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)
setChangesOnly
public void setChangesOnly(boolean changesOnly)
isChangesOnly
public boolean isChangesOnly()
setReturnECs
public void setReturnECs(boolean returnECs)
isReturnECs
public boolean isReturnECs()
setChangeTypes
public void setChangeTypes(int changeTypes)
getChangeTypes
public int getChangeTypes()
encode
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.shared.asn1.codec.EncoderException
- Encodes the persistent search control.
- Parameters:
buffer
- The encoded sink
- Returns:
- A ByteBuffer that contains the encoded PDU
- Throws:
org.apache.directory.shared.asn1.codec.EncoderException
- If anything goes wrong.
toString
public java.lang.String toString()
- Return a String representing this PSearchControl.
Copyright © 2003-2006 . All Rights Reserved.