org.opennms.web.asset
Class ImportAssetsServlet

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

public class ImportAssetsServlet
extends HttpServlet

Author:
Lawrence Karnowski, Benjamin Reed, OpenNMS
See Also:
Serialized Form

Field Summary
protected  AssetModel model
           
protected  String redirectSuccess
          The URL to redirect the client to in case of success.
 
Constructor Summary
ImportAssetsServlet()
           
 
Method Summary
 List<Asset> decodeAssetsText(String text)
           
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Acknowledge the events specified in the POST and then redirect the client to an appropriate URL for display.
 List<Integer> getCurrentAssetNodesList()
           
 void init()
          Looks up the redirect.success parameter in the servlet's configuration.
 
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

redirectSuccess

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


model

protected AssetModel model
Constructor Detail

ImportAssetsServlet

public ImportAssetsServlet()
Method Detail

init

public void init()
          throws ServletException
Looks up the redirect.success parameter in the servlet's configuration. 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 events specified in the POST and then redirect the client to an appropriate URL for display.

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

decodeAssetsText

public List<Asset> decodeAssetsText(String text)
                             throws org.opennms.web.asset.ImportAssetsServlet.AssetException
Throws:
org.opennms.web.asset.ImportAssetsServlet.AssetException

getCurrentAssetNodesList

public List<Integer> getCurrentAssetNodesList()
                                       throws SQLException
Throws:
SQLException


Copyright © 2009. All Rights Reserved.