public class SortControlDirContextProcessor extends AbstractFallbackRequestAndResponseControlDirContextProcessor
critical, defaultRequestControl, defaultResponseControl, fallbackRequestControl, fallbackResponseControl, requestControlClass, responseControlClasslog| 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, setCritical, setRequestControlClass, setResponseControlClassisReplaceSameControlEnabled, preProcess, setReplaceSameControlEnabledpublic 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()
AbstractRequestControlDirContextProcessorcreateRequestControl in class AbstractRequestControlDirContextProcessorprotected void handleResponse(Object control)
handleResponse in class AbstractFallbackRequestAndResponseControlDirContextProcessor