@Test public void getScannerSupport () { ScannerFactory sf = new ScannerFactory (); String[]supported_classes = sf.getDefaultCortexSupport (); Assert.assertTrue (supported_classes.length>1, "Missing supports"); }
public List<DrbCortexItemClass> getScannerSupport () { if (itemClasses == null) { itemClasses = getDefaultCortexSupport (); if ((itemClasses!=null) && LOGGER.isDebugEnabled()) { LOGGER.debug("Supported classes:"); for (String cl:itemClasses) { LOGGER.debug(" - " + cl); } } } if (itemClasses == null) throw new UnsupportedOperationException ( "Empty item list: no scanner support."); List<DrbCortexItemClass> supported = new ArrayList<DrbCortexItemClass> (); if (itemClasses != null) { for (String s : itemClasses) { try { supported.add (DrbCortexItemClass.getCortexItemClassByName (s)); } catch (Exception e) { LOGGER.error ("Cannot add support for class " + s); } } } return supported; }
ScannerFactory { public List<DrbCortexItemClass> getScannerSupport () { if (itemClasses == null) { itemClasses = getDefaultCortexSupport (); if ((itemClasses!=null) && LOGGER.isDebugEnabled()) { LOGGER.debug("Supported classes:"); for (String cl:itemClasses) { LOGGER.debug(" - " + cl); } } } if (itemClasses == null) throw new UnsupportedOperationException ( "Empty item list: no scanner support."); List<DrbCortexItemClass> supported = new ArrayList<DrbCortexItemClass> (); if (itemClasses != null) { for (String s : itemClasses) { try { supported.add (DrbCortexItemClass.getCortexItemClassByName (s)); } catch (Exception e) { LOGGER.error ("Cannot add support for class " + s); } } } return supported; } }
ScannerFactory { public List<DrbCortexItemClass> getScannerSupport () { if (itemClasses == null) { itemClasses = getDefaultCortexSupport (); if ((itemClasses!=null) && LOGGER.isDebugEnabled()) { LOGGER.debug("Supported classes:"); for (String cl:itemClasses) { LOGGER.debug(" - " + cl); } } } if (itemClasses == null) throw new UnsupportedOperationException ( "Empty item list: no scanner support."); List<DrbCortexItemClass> supported = new ArrayList<DrbCortexItemClass> (); if (itemClasses != null) { for (String s : itemClasses) { try { supported.add (DrbCortexItemClass.getCortexItemClassByName (s)); } catch (Exception e) { LOGGER.error ("Cannot add support for class " + s); } } } return supported; }  }
ScannerFactory { public List<DrbCortexItemClass> getScannerSupport () { if (itemClasses == null) { itemClasses = getDefaultCortexSupport (); if ((itemClasses!=null) && LOGGER.isDebugEnabled()) { LOGGER.debug("Supported classes:"); for (String cl:itemClasses) { LOGGER.debug(" - " + cl); } } } if (itemClasses == null) throw new UnsupportedOperationException ( "Empty item list: no scanner support."); List<DrbCortexItemClass> supported = new ArrayList<DrbCortexItemClass> (); if (itemClasses != null) { for (String s : itemClasses) { try { supported.add (DrbCortexItemClass.getCortexItemClassByName (s)); } catch (Exception e) { LOGGER.error ("Cannot add support for class " + s); } } } return supported; }  List<DrbCortexItemClass> getScannerSupport(); static synchronized String[] getDefaultCortexSupport(); Scanner getScanner(String url); Scanner getScanner(String url, String username, String password,
         String pattern); Scanner getUploadScanner(String url, final String username,
      final String password, String pattern); void processScan(final Long scan_id, final User user); void stopScan(final Long scan_id); }
ScannerFactory { public List<DrbCortexItemClass> getScannerSupport () { if (itemClasses == null) { itemClasses = getDefaultCortexSupport (); if ((itemClasses!=null) && LOGGER.isDebugEnabled()) { LOGGER.debug("Supported classes:"); for (String cl:itemClasses) { LOGGER.debug(" - " + cl); } } } if (itemClasses == null) throw new UnsupportedOperationException ( "Empty item list: no scanner support."); List<DrbCortexItemClass> supported = new ArrayList<DrbCortexItemClass> (); if (itemClasses != null) { for (String s : itemClasses) { try { supported.add (DrbCortexItemClass.getCortexItemClassByName (s)); } catch (Exception e) { LOGGER.error ("Cannot add support for class " + s); } } } return supported; }  List<DrbCortexItemClass> getScannerSupport(); static synchronized String[] getDefaultCortexSupport(); Scanner getScanner(String url); Scanner getScanner(String url, String username, String password,
         String pattern); Scanner getUploadScanner(String url, final String username,
      final String password, String pattern); void processScan(final Long scan_id, final User user); void stopScan(final Long scan_id);  }