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
}