createWMS(geoserver, serviceCatalog);
createWCS(geoserver, serviceCatalog);
}
public static void createWFS(GeoServerInfo geoserver, GeoServer config) {
WFSInfoImpl wfs = new WFSInfoImpl();
wfs.setId("wfs");
wfs.setName("wfs");
wfs.setTitle("Default WFS");
wfs.setEnabled(true);
wfs.setServiceLevel(WFSInfo.ServiceLevel.COMPLETE);
// gml2
GMLInfo gml = new GMLInfoImplHb();
gml.setSrsNameStyle(SrsNameStyle.NORMAL);
wfs.getGML().put(WFSInfo.Version.V_10, gml);
// gml3
gml = new GMLInfoImplHb();
gml.setSrsNameStyle(SrsNameStyle.URN);
wfs.getGML().put(WFSInfo.Version.V_11, gml);
wfs.setGeoServer(config);
config.add(wfs);
}