org.ldaptive.control
Class PersistentSearchRequestControl

java.lang.Object
  extended by org.ldaptive.control.AbstractControl
      extended by org.ldaptive.control.PersistentSearchRequestControl
All Implemented Interfaces:
Control, RequestControl

public class PersistentSearchRequestControl
extends AbstractControl
implements RequestControl

Request control for persistent search. See http://tools.ietf.org/id/draft-ietf-ldapext-psearch-03.txt. Control is defined as:

   PersistentSearch ::= SEQUENCE {
      changeTypes INTEGER,
      changesOnly BOOLEAN,
      returnECs BOOLEAN }
 

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Field Summary
static String OID
          OID of this control.
 
Fields inherited from class org.ldaptive.control.AbstractControl
logger
 
Constructor Summary
PersistentSearchRequestControl()
          Default constructor.
PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types)
          Creates a new persistent search request control.
PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types, boolean critical)
          Creates a new persistent search request control.
PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types, boolean co, boolean re)
          Creates a new persistent search request control.
PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types, boolean co, boolean re, boolean critical)
          Creates a new persistent search request control.
 
Method Summary
 byte[] encode()
          Provides the BER encoding of this control.
 boolean getChangesOnly()
          Returns whether only changed entries are returned.
 EnumSet<PersistentSearchChangeType> getChangeTypes()
          Returns the persistent search change types.
 boolean getReturnEcs()
          Returns whether to return an Entry Change Notification control.
 int hashCode()
          Returns the hash code for this object.
 void setChangesOnly(boolean b)
          Sets whether only changed entries are returned.
 void setChangeTypes(EnumSet<PersistentSearchChangeType> types)
          Sets the persistent search change types.
 void setReturnEcs(boolean b)
          Sets whether to return an Entry Change Notification control.
 String toString()
          
 
Methods inherited from class org.ldaptive.control.AbstractControl
equals, getCriticality, getOID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
 

Field Detail

OID

public static final String OID
OID of this control.

See Also:
Constant Field Values
Constructor Detail

PersistentSearchRequestControl

public PersistentSearchRequestControl()
Default constructor.


PersistentSearchRequestControl

public PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types)
Creates a new persistent search request control.

Parameters:
types - persistent search change types

PersistentSearchRequestControl

public PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types,
                                      boolean critical)
Creates a new persistent search request control.

Parameters:
types - persistent search change types
critical - whether this control is critical

PersistentSearchRequestControl

public PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types,
                                      boolean co,
                                      boolean re)
Creates a new persistent search request control.

Parameters:
types - persistent search change types
co - whether only changed entries are returned
re - return an Entry Change Notification control

PersistentSearchRequestControl

public PersistentSearchRequestControl(EnumSet<PersistentSearchChangeType> types,
                                      boolean co,
                                      boolean re,
                                      boolean critical)
Creates a new persistent search request control.

Parameters:
types - persistent search change types
co - whether only changed entries are returned
re - return an Entry Change Notification control
critical - whether this control is critical
Method Detail

getChangeTypes

public EnumSet<PersistentSearchChangeType> getChangeTypes()
Returns the persistent search change types.

Returns:
persistent search change types

setChangeTypes

public void setChangeTypes(EnumSet<PersistentSearchChangeType> types)
Sets the persistent search change types.

Parameters:
types - persistent search change types

getChangesOnly

public boolean getChangesOnly()
Returns whether only changed entries are returned.

Returns:
whether only changed entries are returned

setChangesOnly

public void setChangesOnly(boolean b)
Sets whether only changed entries are returned.

Parameters:
b - whether only changed entries are returned

getReturnEcs

public boolean getReturnEcs()
Returns whether to return an Entry Change Notification control.

Returns:
whether to return an Entry Change Notification control

setReturnEcs

public void setReturnEcs(boolean b)
Sets whether to return an Entry Change Notification control.

Parameters:
b - return an Entry Change Notification control

hashCode

public int hashCode()
Returns the hash code for this object.

Specified by:
hashCode in class AbstractControl
Returns:
hash code

toString

public String toString()

Overrides:
toString in class Object

encode

public byte[] encode()
Provides the BER encoding of this control.

Specified by:
encode in interface RequestControl
Returns:
BER encoded request control


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.