org.opennms.web.asset
Class ModifyAssetServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opennms.web.asset.ModifyAssetServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ModifyAssetServlet
extends javax.servlet.http.HttpServlet

ModifyAssetServlet class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger
See Also:
Serialized Form

Field Summary
protected  AssetModel model
           
 
Constructor Summary
ModifyAssetServlet()
           
 
Method Summary
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          
protected  String getRequestParameter(javax.servlet.http.HttpServletRequest request, String name)
          getRequestParameter
 void init()
          init
protected  Asset parms2Asset(javax.servlet.http.HttpServletRequest request, int nodeId)
          parms2Asset
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, 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

model

protected AssetModel model
Constructor Detail

ModifyAssetServlet

public ModifyAssetServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException

init

Overrides:
init in class javax.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,
                   IOException

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

getRequestParameter

protected String getRequestParameter(javax.servlet.http.HttpServletRequest request,
                                     String name)

getRequestParameter

Parameters:
request - a HttpServletRequest object.
name - a String object.
Returns:
a String object.

parms2Asset

protected Asset parms2Asset(javax.servlet.http.HttpServletRequest request,
                            int nodeId)

parms2Asset

Parameters:
request - a HttpServletRequest object.
nodeId - a int.
Returns:
a Asset object.


Copyright © 2011. All Rights Reserved.