Examples of createService()


Examples of org.locationtech.udig.catalog.ServiceExtension.createService()

        File shapefile = new File(new File(directory, "internal"), "australia.shp");
        assertTrue("Sample File", shapefile.isFile());

        ServiceExtension factory = new ShpServiceExtension();
        Map<String, Serializable> params = factory.createParams(shapefile.toURI().toURL());
        service = factory.createService(null, params);

        List<IGeoResource> members = (List<IGeoResource>) service
                .resources(new NullProgressMonitor());
        resource = members.get(0);
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.ServiceFactoryImpl.createService()

     * This should be called using the Wizard .. job when next/finish is pressed.
     */
    public List<IService> getResources( IProgressMonitor monitor ) throws Exception {
        URL location = new URL(url.getText());
        ServiceFactoryImpl serviceFactory = new ServiceFactoryImpl();
        List<IService> services = serviceFactory.createService(location);
        /*
         * Success! Store the URL in history.
         */
        saveWidgetValues();
        return services;
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.db2.DB2ServiceExtension.createService()

    public List<IService> getResources( IProgressMonitor monitor ) throws Exception {
        if (!isPageComplete())
            return null;

        DB2ServiceExtension creator = new DB2ServiceExtension();
        IService service = creator.createService(null, getParams());
        service.getInfo(monitor); // load

        List<IService> servers = new ArrayList<IService>();
        servers.add(service);
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.geotiff.GeoTiffServiceExtension.createService()

    public void setUp() throws Exception {
        Assume.assumeTrue(GDALUtilities.isGDALAvailable());
       
        GeoTiffServiceExtension fac = new GeoTiffServiceExtension();
        URL url = Data.getResource(GeoTiffGeoResourceTest.class, TIFF_1);
        service = fac.createService(url, fac.createParams(url));
        resource = service.resources((IProgressMonitor) null).get(0);
    }

    @Override
    protected IGeoResource getResolve() {
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.oracle.OracleServiceExtension.createService()

    public List<IResolve> getResources( IProgressMonitor monitor ) throws Exception {
        if (!isPageComplete())
            return null;

        OracleServiceExtension creator = new OracleServiceExtension();
        IService service = creator.createService(null, getParams());
        service.getInfo(monitor); // load

        List<IResolve> servers = new ArrayList<IResolve>();
        servers.add(service);
        return servers;
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.shp.ShpServiceExtension.createService()

                      store.getSchema().getTypeName())) {
                    ShpServiceExtension fac = new ShpServiceExtension();
                    Map<String, Serializable> params = fac
                        .createParams(resolve
                            .getIdentifier());
                    IService replacement = fac
                        .createService(resolve
                            .getIdentifier(),
                            params);
                    catalog.replace(
                        resolve.getID(),
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wfs.WFSServiceExtension.createService()

   
    @Before
    public void setUp() throws Exception {
        WFSServiceExtension fac = new WFSServiceExtension();
        URL url = new URL("http://demo.opengeo.org/geoserver/wfs?"); //$NON-NLS-1$
        service = fac.createService(url, fac.createParams(url));
    }
   
    /*
     * (non-Javadoc)
     *
 
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wms.WMSServiceExtension.createService()

        URL location = new URL(url);
       
        WMSServiceExtension creator = new WMSServiceExtension();

        Map<String, Serializable> params = creator.createParams(location);
        IService service = creator.createService(location, params);
        service.getInfo(monitor); // load it

        List<IService> servers = new ArrayList<IService>();
        servers.add(service);
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wmsc.WMSCServiceExtension.createService()

        URL location = new URL(url);
       
        WMSCServiceExtension creator = new WMSCServiceExtension();

        Map<String, Serializable> params = creator.createParams(location);
        IService service = creator.createService(location, params);
        service.getInfo(monitor); // load it

        List<IService> servers = new ArrayList<IService>();
        servers.add(service);
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wmt.ww.WWServiceExtension.createService()

        URL location = new URL(url);
       
        WWServiceExtension creator = new WWServiceExtension();

        Map<String, Serializable> params = creator.createParams(location);
        IService service = creator.createService(location, params);
        service.getInfo(monitor); // load it

        List<IService> servers = new ArrayList<IService>();
        servers.add(service);
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.