Package org.geoserver.web.CapabilitiesHomePagePanel

Examples of org.geoserver.web.CapabilitiesHomePagePanel.CapsInfo


         */
    }

    public void testCapabilitiesLinks() {

        CapsInfo ci1 = new CapsInfo("FakeService1", new Version("1.0.0"), "../caps1_v1");
        CapsInfo ci2 = new CapsInfo("FakeService1", new Version("1.1.0"), "../caps1_v2");
        CapsInfo ci3 = new CapsInfo("FakeService2", new Version("1.1.0"), "../caps2");

        CapabilitiesHomePagePanel panel = new CapabilitiesHomePagePanel("capsList", Arrays.asList(
                ci1, ci2, ci3));

        TestPage page = new TestPage();
View Full Code Here


        for (ServiceInfo si : app.getGeoServer().getServices()) {
            for (Version v : si.getVersions()) {
                String serviceId = si.getId();
                String capsLink = "../ows?service=" + serviceId + "&version=" + v.toString()
                        + "&request=GetCapabilities";
                CapsInfo ci = new CapsInfo(serviceId, v, capsLink);
                serviceInfoLinks.add(ci);
            }
        }
        return new CapabilitiesHomePagePanel(id, serviceInfoLinks);
View Full Code Here

        List<Service> extensions = GeoServerExtensions.extensions(Service.class);
        for (Service si : extensions) {
            if(si.getOperations().contains("GetCapabilities")) {
                String serviceId = si.getId();
                String capsLink = "../ows?service=" + serviceId + "&version=" + si.getVersion().toString()+ "&request=GetCapabilities";
                CapsInfo ci = new CapsInfo(serviceId, si.getVersion(), capsLink);
                serviceInfoLinks.add(ci);
            }
    }
        return new CapabilitiesHomePagePanel(id, serviceInfoLinks);
View Full Code Here

    }

    @Test
    public void testCapabilitiesLinks() {

        CapsInfo ci1 = new CapsInfo("FakeService1", new Version("1.0.0"), "../caps1_v1");
        CapsInfo ci2 = new CapsInfo("FakeService1", new Version("1.1.0"), "../caps1_v2");
        CapsInfo ci3 = new CapsInfo("FakeService2", new Version("1.1.0"), "../caps2");

        CapabilitiesHomePagePanel panel = new CapabilitiesHomePagePanel("capsList", Arrays.asList(
                ci1, ci2, ci3));

        TestPage page = new TestPage();
View Full Code Here

        final GeoServerApplication app = GeoServerApplication.get();
        final GWCConfig gwcConfig = gwcFacade.getConfig();

        try {
            if (gwcConfig.isWMSCEnabled() && null != app.getBean("gwcServiceWMS")) {
                gwcCaps.add(new CapsInfo("WMS-C", new Version("1.1.1"),
                        "../gwc/service/wms?request=GetCapabilities&version=1.1.1&tiled=true"));
            }
        } catch (NoSuchBeanDefinitionException e) {
            // service not found, ignore exception
        }

        try {
            if (gwcConfig.isWMTSEnabled() && null != app.getBean("gwcServiceWMTS")) {
                gwcCaps.add(new CapsInfo("WMTS", new Version("1.0.0"),
                        "../gwc/service/wmts?REQUEST=GetCapabilities"));
            }
        } catch (NoSuchBeanDefinitionException e) {
            // service not found, ignore exception
        }
        try {
            if (gwcConfig.isTMSEnabled() && null != app.getBean("gwcServiceTMS")) {
                gwcCaps.add(new CapsInfo("TMS", new Version("1.0.0"), "../gwc/service/tms/1.0.0"));
            }
        } catch (NoSuchBeanDefinitionException e) {
            // service not found, ignore exception
        }
View Full Code Here

TOP

Related Classes of org.geoserver.web.CapabilitiesHomePagePanel.CapsInfo

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.