|
|||||||||
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(java.lang.String sortKey)
Constructs a new instance using the supplied sort key. |
Method Summary | |
---|---|
javax.naming.ldap.Control |
createRequestControl()
Create an instance of the appropriate RequestControl. |
int |
getResultCode()
Get the result code returned by the control. |
java.lang.String |
getSortKey()
Get the sort key. |
boolean |
isSorted()
Check whether the returned values were actually sorted by the server. |
void |
postProcess(javax.naming.directory.DirContext ctx)
Perform post-processing on the supplied DirContext . |
void |
setResponseControlClass(java.lang.Class responseControlClass)
Set the class of the expected ResponseControl for the sorted result response. |
void |
setSortKey(java.lang.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(java.lang.String sortKey)
sortKey
- the sort key, i.e. the attribute name to sort on.Method Detail |
---|
public void setResponseControlClass(java.lang.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 java.lang.String getSortKey()
public void setSortKey(java.lang.String sortKey)
sortKey
- the sort key.public javax.naming.ldap.Control createRequestControl()
AbstractRequestControlDirContextProcessor
createRequestControl
in class AbstractRequestControlDirContextProcessor
public void postProcess(javax.naming.directory.DirContext ctx) throws javax.naming.NamingException
DirContextProcessor
DirContext
.
ctx
- the DirContext
instance.
javax.naming.NamingException
- if thrown by the underlying operation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |