public abstract class AbstractServletSearchTemplatesExecutor extends SearchTemplatesExecutor implements ServletSearchExecutor
Modifier and Type | Field and Description |
---|---|
private static String |
DEFAULT_SPRING_CONTEXT_PATH
Default spring context path.
|
private static String |
IGNORE_PATTERN
Ignore pattern.
|
private Pattern |
ignorePattern
Regex pattern to ignore a query.
|
private static String |
MINIMUM_QUERY_TERM_LENGTH
Minimum query term length.
|
private int |
minimumQueryTermLength
Minimum length for at least one query term.
|
private static String |
SPRING_CONTEXT_PATH
Spring context path.
|
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
private static final String SPRING_CONTEXT_PATH
private static final String DEFAULT_SPRING_CONTEXT_PATH
private static final String IGNORE_PATTERN
private static final String MINIMUM_QUERY_TERM_LENGTH
private Pattern ignorePattern
private int minimumQueryTermLength
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 © 2003-2019 Virginia Tech. All Rights Reserved.