org.opennms.web.eventconf
Class DeleteEventServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.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 |
|
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 |
redirectSuccess
protected java.lang.String redirectSuccess
- The URL to redirect the client to in case of success.
DeleteEventServlet
public DeleteEventServlet()
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)
Generated by eevans on May 29 2005 2015.