OpenNMS API 1.2.3

org.opennms.web.eventconf
Class DeleteEventServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.opennms.web.eventconf.DeleteEventServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DeleteEventServlet
extends javax.servlet.http.HttpServlet

This servlet deletes a given event from the eventconf.xml file

Author:
Jason Johns , OpenNMS
See Also:
Serialized Form

Field Summary
protected  java.lang.String redirectSuccess
          The URL to redirect the client to in case of success.
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
DeleteEventServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Delete the event specified in the POST and then redirect the client to an appropriate URL for display.
protected  java.lang.String getRedirectString(javax.servlet.http.HttpServletRequest request)
           
 void init()
          Looks up the dispath.success parameter in the servlet's config.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

redirectSuccess

protected java.lang.String redirectSuccess
The URL to redirect the client to in case of success.

Constructor Detail

DeleteEventServlet

public DeleteEventServlet()
Method Detail

init

public void init()
          throws javax.servlet.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.

Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Delete the event specified in the POST and then redirect the client to an appropriate URL for display.

Throws:
javax.servlet.ServletException
java.io.IOException

getRedirectString

protected java.lang.String getRedirectString(javax.servlet.http.HttpServletRequest request)

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.