org.opennms.web.notification
Class AcknowledgeNoticeServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opennms.web.notification.AcknowledgeNoticeServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class AcknowledgeNoticeServlet
- extends HttpServlet
This servlet receives an HTTP POST with a list of notices to acknowledge, and
then it redirects the client to a URL for display. The target URL is
configurable in the servlet config (web.xml file).
- Author:
- Lawrence Karnowski , OpenNMS
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
redirectSuccess
protected String redirectSuccess
- The URL to redirect the client to in case of success.
AcknowledgeNoticeServlet
public AcknowledgeNoticeServlet()
init
public void init()
throws ServletException
- Looks up the
dispath.success parameter in the servlet's
config. If not present, this servlet will throw an exception so it will
be marked unavailable.
- Overrides:
init in class GenericServlet
- Throws:
ServletException
doPost
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Acknowledge the notices specified in the POST and then redirect the
client to an appropriate URL for display.
- Overrides:
doPost in class HttpServlet
- Throws:
ServletException
IOException
getRedirectString
protected String getRedirectString(HttpServletRequest request)
- Convenience method for dynamically creating the redirect URL if
necessary.
Copyright ? 2007. All Rights Reserved.