Package org.stringtree.fetcher

Examples of org.stringtree.fetcher.TractURLFetcher


    public Server(Object app, String port, Fetcher tpl, Fetcher pubfiles) {
      this(app, port, tpl, pubfiles, null);
    }
   
    public Server(Object app, String port, URL tpl, URL pubfiles) {
      this(app, port, new TractURLFetcher(tpl), new BytesURLFetcher(pubfiles));
    }
View Full Code Here


    private static Fetcher convertStringListToFallbackFetcher(List<String> strings, boolean isTpl) throws IOException {
         List<Fetcher> fetchers = new ArrayList<Fetcher>(strings.size());
      for (String string : strings) {
        URL url = URLReadingUtils.findURL(string, "file");
        if (isTpl) {
          fetchers.add(new TractURLFetcher(url));
        } else {
            fetchers.add(new BytesURLFetcher(url));
        }
      }
      return new FallbackFetcher(fetchers);
View Full Code Here

        }
        load();
    }

    public RemoteSpecCommonContext(URL spec, URL tpl, URL pubfiles, boolean lock) {
        this(spec, new TractURLFetcher(tpl), new BytesURLFetcher(pubfiles), lock);
    }
View Full Code Here

TOP

Related Classes of org.stringtree.fetcher.TractURLFetcher

Copyright © 2018 www.massapicom. 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.