Package java.util

Examples of java.util.ArrayList.addAll()


        }

        List servletMaps = new ArrayList();
        for (Iterator i = ctxs.iterator(); i.hasNext();) {
            Context ctx = (Context) i.next();
            servletMaps.addAll(ApplicationUtils.getApplicationServletMaps(ctx));
        }

        return new ModelAndView(getViewName(), "servletMaps", servletMaps);
    }
View Full Code Here


                List appServlets = ApplicationUtils.getApplicationServlets(ctx);
                for (Iterator j = appServlets.iterator(); j.hasNext();) {
                    ServletInfo svlt = (ServletInfo) j.next();
                    Collections.sort(svlt.getMappings());
                }
                servlets.addAll(appServlets);
            }
        }

        return new ModelAndView(getViewName(), "servlets", servlets);
    }
View Full Code Here

        List result = new ArrayList();
        Iterator iter = params.iterator();
        while(iter.hasNext()){
            SPParameter param = (SPParameter)iter.next();
            if(param.getResultSetColumns() != null){
                result.addAll(param.getResultSetColumns());
            }
        }
        iter = params.iterator();
        while(iter.hasNext()){
            SPParameter param = (SPParameter)iter.next();
View Full Code Here

   * @return list of matched DownloadManager objects
   */
  public List getTorrents(List torrentsToMatch, String filter)
  {
    List torrents = new ArrayList();
    torrents.addAll(matchRange(torrentsToMatch, filter) );
    torrents.addAll(matchWildcard(torrentsToMatch, filter) );
    return torrents;
  }

  /**
 
View Full Code Here

   */
  public List getTorrents(List torrentsToMatch, String filter)
  {
    List torrents = new ArrayList();
    torrents.addAll(matchRange(torrentsToMatch, filter) );
    torrents.addAll(matchWildcard(torrentsToMatch, filter) );
    return torrents;
  }

  /**
   * first tries to match torrents by concatenating all of the arguments.
View Full Code Here

     * @return  an <CODE>ArrayList</CODE>
     */
    public ArrayList getChunks() {
        ArrayList tmp = new ArrayList();
        for (Iterator i = iterator(); i.hasNext(); ) {
            tmp.addAll(((Element) i.next()).getChunks());
        }
        return tmp;
    }
 
  /**
 
View Full Code Here

                if (fd != null) {
                    filterClass = fd.getFilterClass();
                }

                List filterMappings = getFilterMappings(fms[i], dm, filterClass);
                filterMaps.addAll(filterMappings);
            }
        }
        return filterMaps;
    }
View Full Code Here

    }

    public List getAppenders() {
        List appenders = new ArrayList();
        try {
            appenders.addAll(getRootLogger().getAppenders());

            Class clazz = (Class) getTarget();
            Method m = MethodUtils.getAccessibleMethod(clazz, "getCurrentLoggers", new Class[]{});
            Enumeration e = (Enumeration) m.invoke(null, null);
            while (e.hasMoreElements()) {
View Full Code Here

            while (e.hasMoreElements()) {
                Log4JLoggerAccessor accessor = new Log4JLoggerAccessor();
                accessor.setTarget(e.nextElement());
                accessor.setApplication(getApplication());

                appenders.addAll(accessor.getAppenders());
            }
        } catch (Exception e) {
            log.error(getTarget() + ".getCurrentLoggers() failed", e);
        }
        return appenders;
View Full Code Here

            while (it.hasNext()) {
                LogbackLoggerAccessor accessor = new LogbackLoggerAccessor();
                accessor.setTarget(it.next());
                accessor.setApplication(getApplication());

                appenders.addAll(accessor.getAppenders());
            }
        } catch (Exception e) {
            log.error(getTarget() + ".getLoggerList() failed", e);
        }
        return appenders;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.