org.opennms.web.event
Class EventQueryServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opennms.web.event.EventQueryServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class EventQueryServlet
- extends HttpServlet
This servlet takes a large and specific request parameter set and maps it to
the more robust "filter" parameter set of the
EventFilterServletvia a redirect.
- Author:
- Lawrence Karnowski , OpenNMS
- See Also:
- Serialized Form
|
Field Summary |
protected static String[] |
IGNORE_LIST
The list of parameters that are extracted by this servlet and not passed
on to the EventFilterServlet. |
protected String |
redirectUrl
The URL for the EventFilterServlet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IGNORE_LIST
protected static String[] IGNORE_LIST
- The list of parameters that are extracted by this servlet and not passed
on to the
EventFilterServlet.
redirectUrl
protected String redirectUrl
- The URL for the
EventFilterServlet. The
default is "list." This URL is a sibling URL, so it is relative to the
URL directory that was used to call this servlet (usually "event/").
EventQueryServlet
public EventQueryServlet()
init
public void init()
throws ServletException
- Overrides:
init in class GenericServlet
- Throws:
ServletException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Extracts the key parameters from the parameter set, translates them into
filter-based parameters, and then passes the modified parameter set to
the
EventFilterServlet.
- Overrides:
doGet in class HttpServlet
- Throws:
ServletException
IOException
getBeforeDateFilter
protected BeforeDateFilter getBeforeDateFilter(HttpServletRequest request)
getAfterDateFilter
protected AfterDateFilter getAfterDateFilter(HttpServletRequest request)
getDateFromRequest
protected Date getDateFromRequest(HttpServletRequest request,
String prefix)
throws MissingParameterException
- Throws:
MissingParameterException
getRequiredDateFields
protected String[] getRequiredDateFields(String prefix)
Copyright © 2009. All Rights Reserved.