org.ldaptive.control
Class SortRequestControl

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

public class SortRequestControl
extends AbstractControl
implements RequestControl

Request control for server side sorting. See RFC 2891. Control is defined as:

   SortKeyList ::= SEQUENCE OF SEQUENCE {
      attributeType   AttributeDescription,
      orderingRule    [0] MatchingRuleId OPTIONAL,
      reverseOrder    [1] BOOLEAN DEFAULT FALSE }
 

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
SortRequestControl()
          Default constructor.
SortRequestControl(SortKey[] keys)
          Creates a new sort request control.
SortRequestControl(SortKey[] keys, boolean critical)
          Creates a new sort request control.
 
Method Summary
 byte[] encode()
          Provides the BER encoding of this control.
 SortKey[] getSortKeys()
          Returns the sort keys.
 int hashCode()
          Returns the hash code for this object.
 void setSortKeys(SortKey[] keys)
          Sets the sort keys.
 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

SortRequestControl

public SortRequestControl()
Default constructor.


SortRequestControl

public SortRequestControl(SortKey[] keys)
Creates a new sort request control.

Parameters:
keys - sort keys

SortRequestControl

public SortRequestControl(SortKey[] keys,
                          boolean critical)
Creates a new sort request control.

Parameters:
keys - sort keys
critical - whether this control is critical
Method Detail

getSortKeys

public SortKey[] getSortKeys()
Returns the sort keys.

Returns:
sort keys

setSortKeys

public void setSortKeys(SortKey[] keys)
Sets the sort keys.

Parameters:
keys - sort keys

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.