Package primarydatamanager.mirrorupdater.data

Examples of primarydatamanager.mirrorupdater.data.HttpDataSource


    // Init the data source
    try {
      String type = getProperty(prop, "dataSource.type", "http");
      if (type.equals("http")) {
        String url = getProperty(prop, "dataSource.url", getPrimaryServerUrl());
        mDataSource = new HttpDataSource(url);
      } else if (type.equals("file")) {
        String dir = getProperty(prop, "dataSource.dir");
        mDataSource = new FileDataSource(new File(dir));
      } else {
        throw new UpdateException("dataSource.type must be either 'http' or 'file'");
View Full Code Here


      System.exit(1);
    }
   
    String[] groupNames = groupNameList.split(":");
   
    DataSource source = new HttpDataSource("http://tvbrowser.dyndns.tv");
    DataTarget target = new FileDataTarget(new File("."));
   
    MirrorVisualizer visualizer = new HtmlMirrorVisualizer(source, target, groupNames);
    visualizer.visualize();
   
View Full Code Here

TOP

Related Classes of primarydatamanager.mirrorupdater.data.HttpDataSource

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.