Package org.opennms.web.nodelabel
Class NodeLabelChangeServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.opennms.web.nodelabel.NodeLabelChangeServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class NodeLabelChangeServlet extends javax.servlet.http.HttpServlet
Changes the label of a node, throws an event signaling that change, and then redirects the user to a web page displaying that node's details.- Author:
- Larry Karnowski, OpenNMS
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected EventProxy
proxy
-
Constructor Summary
Constructors Constructor Description NodeLabelChangeServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
init()
initprotected void
sendLabelChangeEvent(int nodeId, NodeLabel oldNodeLabel, NodeLabel newNodeLabel)
sendLabelChangeEvent-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
proxy
protected EventProxy proxy
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException
init
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
- if any.
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
sendLabelChangeEvent
protected void sendLabelChangeEvent(int nodeId, NodeLabel oldNodeLabel, NodeLabel newNodeLabel) throws EventProxyException
sendLabelChangeEvent
- Parameters:
nodeId
- a int.oldNodeLabel
- aorg.opennms.netmgt.utils.NodeLabelJDBCImpl
object.newNodeLabel
- aorg.opennms.netmgt.utils.NodeLabelJDBCImpl
object.- Throws:
EventProxyException
- if any.
-
-