|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.servlets.AbstractServletSearchExecutor
public abstract class AbstractServletSearchExecutor
Uses PooledConnectionFactory and SearchExecutor to perform
search operations. These objects are configured from properties found in the
servlet configuration.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
AbstractServletSearchExecutor()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes any resources associated with this servlet search executor. |
protected static Properties |
createProperties(javax.servlet.ServletConfig config)
Returns context specific properties based on the supplied JAAS options. |
void |
initialize(javax.servlet.ServletConfig config)
Prepares this servlet search executor for use. |
void |
search(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Reads parameters from the request, performs an ldap search, and writes the result to the response. |
protected abstract void |
writeResponse(SearchResult result,
javax.servlet.http.HttpServletResponse response)
Writes the supplied search result to the servlet response output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public AbstractServletSearchExecutor()
| Method Detail |
|---|
public void initialize(javax.servlet.ServletConfig config)
initialize in interface ServletSearchExecutorconfig - to initialize this object withprotected static Properties createProperties(javax.servlet.ServletConfig config)
config - to read properties from
public void search(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws LdapException,
IOException
search in interface ServletSearchExecutorrequest - servlet request to read search parameters fromresponse - servlet response to write ldap search result to
LdapException - if an error occurs performing the search
IOException - if an error occurs writing to the response
protected abstract void writeResponse(SearchResult result,
javax.servlet.http.HttpServletResponse response)
throws IOException
result - search result to writeresponse - to write to
IOException - if an error occurs writing to the responsepublic void close()
close in interface ServletSearchExecutor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||