Package uk.org.ogsadai.client.toolkit.presentation.jersey

Examples of uk.org.ogsadai.client.toolkit.presentation.jersey.JerseyDataSource


        for (DataSourceObserver observer : observers)
        {
          LOG.debug("Result data source: " + observer.getDataSourceResource().getClass().getName());
          if(observer.getDataSourceResource() instanceof JerseyDataSource)
          {
            JerseyDataSource ds = (JerseyDataSource) observer.getDataSourceResource();
            String address = ((JerseyResource) ds.getResource()).getURL();
            LOG.debug("Result address = " + address);
            map.put(observer.getName(), address);
          }       
        }
        return map;
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public void update(Observable o, Object arg)
    {
        JerseyDataSource resource = (JerseyDataSource)arg;
        String url = ((JerseyResource)resource.getResource()).getBaseURL();
        addInput(URL, new StringData(url));
        addInput(RESOURCE_ID, new StringData(resource.getResourceID().toString()));
    }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.client.toolkit.presentation.jersey.JerseyDataSource

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.