public final class SearchServlet
extends javax.servlet.http.HttpServlet
All other init params will set properties on:
Example: http://www.server.com/Search?query=uid=dfisher If you need to pass complex queries, such as (&(cn=daniel*)(surname=fisher)), then the query must be form encoded. If you only want to receive a subset of attributes those can be specified. Example: http://www.server.com/Search?query=uid=dfisher&attrs=givenname&attrs=surname
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Logger for this class.
|
private static String |
SEARCH_EXECUTOR_CLASS
Custom search executor implementation, value is "searchExecutorClass".
|
private ServletSearchExecutor |
searchExecutor
Parses servlet requests and performs search operations.
|
private static long |
serialVersionUID
serial version uid.
|
Constructor and Description |
---|
SearchServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init(javax.servlet.ServletConfig config) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
private static final String SEARCH_EXECUTOR_CLASS
private static final long serialVersionUID
protected final Logger logger
private ServletSearchExecutor searchExecutor
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.