Examples of WWServiceExtension


Examples of org.locationtech.udig.catalog.internal.wmt.ww.WWServiceExtension

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

Examples of org.locationtech.udig.catalog.internal.wmt.ww.WWServiceExtension

     * (never called?)
     */
    public List<IService> getResources( IProgressMonitor monitor ) throws Exception {
        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

Examples of org.locationtech.udig.catalog.internal.wmt.ww.WWServiceExtension

    public Map<String, Serializable> getParams() {
        try {
            URL location = new URL(url);
           
            WWServiceExtension creator = new WWServiceExtension();
            String errorMessage=creator.reasonForFailure(location);
            if( errorMessage!=null ){
                setErrorMessage(errorMessage);
                return null;
                //return Collections.emptyMap();
            }else
                return creator.createParams(location);
        }
        catch(MalformedURLException e) {
            return null;
        }
    }
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wmt.ww.WWServiceExtension

    private ImageRegistry imageCache;
    private static final String IMG_DEMIS = "demis.png"; //$NON-NLS-1$

    @Override
    public IService getService() {
        WWServiceExtension serviceExtension = new WWServiceExtension();
       
        URL url = WWControl.class.getResource("DemisWorldMap.xml"); //$NON-NLS-1$
        Map<String, Serializable> params =  serviceExtension.createParams(url);
               
        IService service = serviceExtension.createService(url, params);
       
        return 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.