*/
public final class WFSContentAction extends ConfigAction {
public ActionForward execute(ActionMapping mapping, ActionForm form,
UserContainer user, HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
WFSContentForm contentForm = (WFSContentForm) form;
boolean enabled = contentForm.isEnabled();
if (contentForm.isEnabledChecked() == false) {
enabled = false;
}
boolean srsXmlStyle = contentForm.isSrsXmlStyle();
if (contentForm.isSrsXmlStyleChecked() == false) {
srsXmlStyle = false;
}
boolean citeConformanceHacks = contentForm.getCiteConformanceHacks();
if (contentForm.getCiteConformanceHacksChecked() == false) {
citeConformanceHacks = false; // deal with the way HTTP works.
}
boolean featureBounding = contentForm.isFeatureBounding();
if (contentForm.isFeatureBoundingChecked() == false) {
featureBounding = false;
}
String onlineResource = contentForm.getOnlineResource();
String[] selectedFeatures = contentForm.getSelectedFeatures();
String[] features = contentForm.getFeatures();
WFSConfig config = getWFSConfig();
config.setSrsXmlStyle(srsXmlStyle);
config.setEnabled(enabled);
config.setOnlineResource(new URL(onlineResource));
config.setServiceLevel(contentForm.getServiceLevel());
config.setCiteConformanceHacks(citeConformanceHacks);
config.setFeatureBounding(featureBounding);
getApplicationState().notifyConfigChanged();
return mapping.findForward("config");