|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ldap.control.AbstractRequestControlDirContextProcessor
org.springframework.ldap.control.SortControlDirContextProcessor
public class SortControlDirContextProcessor
DirContextProcessor implementation for managing the SortControl.
Note that this class is stateful, so a new instance needs to be instantiated
for each new search.
| Field Summary |
|---|
| Fields inherited from class org.springframework.ldap.control.AbstractRequestControlDirContextProcessor |
|---|
log |
| Constructor Summary | |
|---|---|
SortControlDirContextProcessor(String sortKey)
Constructs a new instance using the supplied sort key. |
|
| Method Summary | |
|---|---|
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. |
boolean |
isSorted()
Check whether the returned values were actually sorted by the server. |
void |
postProcess(DirContext ctx)
Perform post-processing on the supplied DirContext. |
void |
setResponseControlClass(Class responseControlClass)
Set the class of the expected ResponseControl for the sorted result response. |
void |
setSortKey(String sortKey)
Set the sort key, i.e. |
| Methods inherited from class org.springframework.ldap.control.AbstractRequestControlDirContextProcessor |
|---|
preProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortControlDirContextProcessor(String sortKey)
sortKey - the sort key, i.e. the attribute name to sort on.| Method Detail |
|---|
public void setResponseControlClass(Class responseControlClass)
SortResponseControl.
responseControlClass - Class of the expected response control.public boolean isSorted()
true if the result was sorted, false
otherwise.public int getResultCode()
public String getSortKey()
public void setSortKey(String sortKey)
sortKey - the sort key.public Control createRequestControl()
AbstractRequestControlDirContextProcessor
createRequestControl in class AbstractRequestControlDirContextProcessor
public void postProcess(DirContext ctx)
throws NamingException
DirContextProcessorDirContext.
ctx - the DirContext instance.
NamingException - if thrown by the underlying operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||