Examples of WFSServiceExtension


Examples of org.geotools.gtcatalog.wfs.WFSServiceExtension

  WFSServiceExtension ext;

  public void start(BundleContext context) throws Exception {
   
    //get the catalog service and register the service extension
    ext = new WFSServiceExtension();
   
    ServiceReference ref =
      context.getServiceReference(ServiceFactory.class.getName());
    SkunkServiceFactory factory = (SkunkServiceFactory) context.getService(ref);
    factory.addServiceExtension(ext);
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wfs.WFSServiceExtension

        }
    }
   
    /** 'Create' params given the provided url, no magic occurs */
    protected Map<String,Serializable> createParams( URL url ){
        WFSServiceExtension factory = new WFSServiceExtension();
        Map<String,Serializable> params = factory.createParams( url );
        if( params != null) return params;
       
        Map<String,Serializable> params2 = new HashMap<String,Serializable>();
        params2.put(WFSDataStoreFactory.URL.key,url);
       
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wfs.WFSServiceExtension

    private IService service = null;
   
    @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));
    }
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wfs.WFSServiceExtension

    private IService service = null;
    private IGeoResource resource = null;

    @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));
        resource = service.resources((IProgressMonitor) null).get(0);
    }
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wfs.WFSServiceExtension

        assertEquals( "TestName", members.get(0).resolve(FeatureSource.class, new NullProgressMonitor()).getSchema().getName().getLocalPart()); //$NON-NLS-1$
    }

    @Test
    public void testCreateTypeOnIllegalDS() throws Exception {
        WFSServiceExtension ext=new WFSServiceExtension();
        URL id=new URL("http://demo.opengeo.org/geoserver/wfs"); //$NON-NLS-1$
        Map<String, Serializable> params = ext.createParams(id);
       
        IService service = ext.createService(id, params);
       
        NewFeatureTypeOp op=new NewFeatureTypeOp();
        op.testingSetTesting(true);
        op.op(Display.getCurrent(), service, new NullProgressMonitor());
       
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.