Package org.locationtech.udig.catalog.internal.wmt.ww

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


     * (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

    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

    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

Related Classes of org.locationtech.udig.catalog.internal.wmt.ww.WWServiceExtension

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.