Package org.opennms.web.asset
Class ImportAssetsServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.opennms.web.asset.ImportAssetsServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class ImportAssetsServlet extends javax.servlet.http.HttpServletImportAssetsServlet class.
- Author:
- Lawrence Karnowski, Benjamin Reed
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AssetModelmodelprotected StringredirectSuccessThe URL to redirect the client to in case of success.
-
Constructor Summary
Constructors Constructor Description ImportAssetsServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Asset>decodeAssetsText(String text)decodeAssetsTextvoiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Acknowledge the events specified in the POST and then redirect the client to an appropriate URL for display.List<Integer>getCurrentAssetNodesList()getCurrentAssetNodesListvoidinit()Looks up theredirect.successparameter in the servlet's configuration.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
redirectSuccess
protected String redirectSuccess
The URL to redirect the client to in case of success.
-
model
protected AssetModel model
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletExceptionLooks up theredirect.successparameter in the servlet's configuration. If not present, this servlet will throw an exception so it will be marked unavailable.- Overrides:
initin 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, IOExceptionAcknowledge the events specified in the POST and then redirect the client to an appropriate URL for display.- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
decodeAssetsText
public List<Asset> decodeAssetsText(String text) throws org.opennms.web.asset.ImportAssetsServlet.AssetException
decodeAssetsText
-
getCurrentAssetNodesList
public List<Integer> getCurrentAssetNodesList() throws SQLException
getCurrentAssetNodesList
- Returns:
- a
Listobject. - Throws:
SQLException- if any.
-
-