|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.control.AbstractControl
org.ldaptive.control.SortResponseControl
public class SortResponseControl
Response control for server side sorting. See RFC 2891. Control is defined as:
SortResult ::= SEQUENCE {
sortResult ENUMERATED {
success (0), -- results are sorted
operationsError (1), -- server internal failure
timeLimitExceeded (3), -- timelimit reached before
-- sorting was completed
strongAuthRequired (8), -- refused to return sorted
-- results via insecure
-- protocol
adminLimitExceeded (11), -- too many matching entries
-- for the server to sort
noSuchAttribute (16), -- unrecognized attribute
-- type in sort key
inappropriateMatching (18), -- unrecognized or
-- inappropriate matching
-- rule in sort key
insufficientAccessRights (50), -- refused to return sorted
-- results to this client
busy (51), -- too busy to process
unwillingToPerform (53), -- unable to sort
other (80)
},
attributeType [0] AttributeDescription OPTIONAL }
| Field Summary | |
|---|---|
static String |
OID
OID of this control. |
| Fields inherited from class org.ldaptive.control.AbstractControl |
|---|
logger |
| Constructor Summary | |
|---|---|
SortResponseControl()
Default constructor. |
|
SortResponseControl(boolean critical)
Creates a new sort response control. |
|
SortResponseControl(ResultCode code,
boolean critical)
Creates a new sort response control. |
|
SortResponseControl(ResultCode code,
String attrName,
boolean critical)
Creates a new sort response control. |
|
| Method Summary | |
|---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data. |
String |
getAttributeName()
Returns the attribute name that caused the sort to fail. |
ResultCode |
getSortResult()
Returns the result code of the server side sort. |
int |
hashCode()
Returns the hash code for this object. |
void |
setAttributeName(String name)
Sets the attribute name that caused the sort to fail. |
void |
setSortResult(ResultCode code)
Sets the result code of the server side sort. |
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 |
|---|
public static final String OID
| Constructor Detail |
|---|
public SortResponseControl()
public SortResponseControl(boolean critical)
critical - whether this control is critical
public SortResponseControl(ResultCode code,
boolean critical)
code - result of the sortcritical - whether this control is critical
public SortResponseControl(ResultCode code,
String attrName,
boolean critical)
code - result of the sortattrName - name of the failed attributecritical - whether this control is critical| Method Detail |
|---|
public ResultCode getSortResult()
public void setSortResult(ResultCode code)
code - result codepublic String getAttributeName()
public void setAttributeName(String name)
name - of an attributepublic int hashCode()
hashCode in class AbstractControlpublic String toString()
toString in class Objectpublic void decode(byte[] berValue)
decode in interface ResponseControlberValue - BER encoded response control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||