Examples of WMSServiceExtension


Examples of org.geotools.gtcatalog.wms.WMSServiceExtension

  WMSServiceExtension ext;

  public void start(BundleContext context) throws Exception {
   
    //get the catalog service and register the service extension
    ext = new WMSServiceExtension();
   
    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.wms.WMSServiceExtension

        return Collections.EMPTY_MAP;
    }
 
  /** 'Create' params given the provided url, no magic occurs */
    static public Map<String,Serializable> createParams( URL url ){
        WMSServiceExtension factory = new WMSServiceExtension();
        Map params = factory.createParams( url );
        if( params != null) return params;
       
        Map<String,Serializable> params2 = new HashMap<String,Serializable>();
        params2.put(WMSServiceImpl.WMS_URL_KEY,url);
        return params2;
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wms.WMSServiceExtension

     * 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);
       
        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.wms.WMSServiceExtension

    public Map<String, Serializable> getParams() {
        try {
            URL location = new URL(url);

            WMSServiceExtension creator = new WMSServiceExtension();
            String errorMessage = creator.reasonForFailure(location);
            if (errorMessage != null) {
                setErrorMessage(errorMessage);
                return Collections.emptyMap();
            } else
                return creator.createParams(location);
        } catch (MalformedURLException e) {
            return null;
        }
    }
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.