@Override
protected Object handleObjectGet() {
String workspace = (String) getRequest().getAttributes().get( "workspace" );
String wmsstore = (String) getRequest().getAttributes().get( "wmsstore" );
WMSStoreInfo info = catalog.getStoreByName( workspace, wmsstore, WMSStoreInfo.class );
if ( info == null ) {
throw new RestletException( "No such WMS store: " + wmsstore, Status.CLIENT_ERROR_NOT_FOUND );
}
//list of available feature types
List<String> available = new ArrayList<String>();
try {
WebMapServer ds = (WebMapServer) info.getWebMapServer(null);
for ( Layer layer : ds.getCapabilities().getLayerList() ) {
if(layer.getName() == null || "".equals(layer.getName())) {
continue;
}