public class SortResponseControl extends AbstractControl implements ResponseControl
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 }
Modifier and Type | Class and Description |
---|---|
private static class |
SortResponseControl.AttributeTypeHandler
Parse handler implementation for the attribute type.
|
private static class |
SortResponseControl.SortResultHandler
Parse handler implementation for the sort result.
|
Modifier and Type | Field and Description |
---|---|
private String |
attributeName
Failed attribute name.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
static String |
OID
OID of this control.
|
private ResultCode |
sortResult
Result of the server side sorting.
|
logger
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.
|
boolean |
equals(Object o) |
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() |
getCriticality, getOID
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCriticality, getOID
public static final String OID
private static final int HASH_CODE_SEED
private ResultCode sortResult
private String attributeName
public SortResponseControl()
public SortResponseControl(boolean critical)
critical
- whether this control is criticalpublic SortResponseControl(ResultCode code, boolean critical)
code
- result of the sortcritical
- whether this control is criticalpublic SortResponseControl(ResultCode code, String attrName, boolean critical)
code
- result of the sortattrName
- name of the failed attributecritical
- whether this control is criticalpublic ResultCode getSortResult()
public void setSortResult(ResultCode code)
code
- result codepublic String getAttributeName()
public void setAttributeName(String name)
name
- of an attributepublic boolean equals(Object o)
equals
in class AbstractControl
public int hashCode()
AbstractControl
hashCode
in class AbstractControl
public void decode(byte[] berValue)
ResponseControl
decode
in interface ResponseControl
berValue
- BER encoded response controlCopyright © 2003-2019 Virginia Tech. All Rights Reserved.