Package org.vfny.geoserver.form.wfs

Examples of org.vfny.geoserver.form.wfs.WFSContentForm


*/
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");
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.form.wfs.WFSContentForm

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.