public abstract class AbstractServletSearchTemplatesExecutor extends SearchTemplatesExecutor implements ServletSearchExecutor
logger
Constructor and Description |
---|
AbstractServletSearchTemplatesExecutor() |
Modifier and Type | Method and Description |
---|---|
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.
|
close, getConnectionFactories, getSearchExecutor, getSearchTemplates, search, search, setConnectionFactories, setSearchExecutor, setSearchTemplates, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public AbstractServletSearchTemplatesExecutor()
public void initialize(javax.servlet.ServletConfig config)
ServletSearchExecutor
initialize
in interface ServletSearchExecutor
config
- to initialize this object withpublic void search(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws LdapException, IOException
ServletSearchExecutor
search
in interface ServletSearchExecutor
request
- servlet request to read search parameters fromresponse
- servlet response to write ldap search result toLdapException
- if an error occurs performing the searchIOException
- if an error occurs writing to the responseprotected abstract void writeResponse(SearchResult result, javax.servlet.http.HttpServletResponse response) throws IOException
result
- search result to writeresponse
- to write toIOException
- if an error occurs writing to the responseCopyright © 2016. All rights reserved.