<%@ page import="org.opennms.web.admin.nodeManagement.SnmpManagedInterface" %> <%! private java.util.List getList(String array[]) { java.util.List newList = new java.util.ArrayList(); if (array != null) { for (int i = 0; i < array.length; i++) { newList.add(array[i]); } } return newList; } %> <% HttpSession userSession = request.getSession(false); java.util.List allInterfaces = (java.util.List) userSession.getAttribute("listAllinterfaces.snmpmanage.jsp"); java.util.List interfaceList = getList(request.getParameterValues("collTypeCheck")); String nodeIdString = request.getParameter("node"); int currNodeId = Integer.parseInt(nodeIdString); for (int j = 0; j < allInterfaces.size(); j++) { SnmpManagedInterface curInterface = (SnmpManagedInterface) allInterfaces.get(j); String intKey = curInterface.getNodeid() + "+" + curInterface.getIfIndex(); interfaceList.contains(intKey); curInterface.getNodeid(); "C".equals(curInterface.getStatus()); if (curInterface.getStatus() == null) { out.println("getStatus() returned null
"); } else { out.println("getStatus() did not return null
"); } if (!interfaceList.contains(intKey) && curInterface.getNodeid() == currNodeId && "C".equals(curInterface.getStatus())) { out.println("test matched
"); } else { out.println("test failed
"); } } %>