public class SortControlDirContextProcessor extends AbstractFallbackRequestAndResponseControlDirContextProcessor
critical, defaultRequestControl, defaultResponseControl, fallbackRequestControl, fallbackResponseControl, requestControlClass, responseControlClass
log
Constructor and Description |
---|
SortControlDirContextProcessor(String sortKey)
Constructs a new instance using the supplied sort key.
|
Modifier and Type | Method and Description |
---|---|
Control |
createRequestControl()
Create an instance of the appropriate RequestControl.
|
int |
getResultCode()
Get the result code returned by the control.
|
String |
getSortKey()
Get the sort key.
|
protected void |
handleResponse(Object control) |
boolean |
isSorted()
Check whether the returned values were actually sorted by the server.
|
createRequestControl, invokeMethod, loadControlClasses, postProcess, setRequestControlClass, setResponseControlClass
isReplaceSameControlEnabled, preProcess, setReplaceSameControlEnabled
public SortControlDirContextProcessor(String sortKey)
sortKey
- the sort key, i.e. the attribute name to sort on.public boolean isSorted()
true
if the result was sorted, false
otherwise.public int getResultCode()
public String getSortKey()
public Control createRequestControl()
AbstractRequestControlDirContextProcessor
createRequestControl
in class AbstractRequestControlDirContextProcessor
protected void handleResponse(Object control)
handleResponse
in class AbstractFallbackRequestAndResponseControlDirContextProcessor
Copyright © 2005-2012 The Spring LDAP Framework. All Rights Reserved.