Package org.vfny.geoserver.config

Examples of org.vfny.geoserver.config.WMSConfig


            enabled = false;
        }

        String onlineResource = contentForm.getOnlineResource();

        WMSConfig config = getWMSConfig();

        config.setEnabled(enabled);
        config.setOnlineResource(new URL(onlineResource));

        getApplicationState().notifyConfigChanged();

        return mapping.findForward("config");
    }
View Full Code Here


public class WMSRenderingAction extends ConfigAction {
  public ActionForward execute(ActionMapping mapping, ActionForm form,
      UserContainer user, HttpServletRequest request, HttpServletResponse response
  ) throws IOException, ServletException {
   
      WMSConfig config = getWMSConfig();
          WMSRenderingForm renderingForm = (WMSRenderingForm) form;

          boolean svgAntiAlias = renderingForm.getSvgAntiAlias();

          if (renderingForm.isSvgAntiAliasChecked() == false) {
            svgAntiAlias = false;
          }
         
          config.setSvgRenderer(renderingForm.getSvgRenderer());
          config.setSvgAntiAlias(svgAntiAlias);
          getApplicationState().notifyConfigChanged();

          return mapping.findForward("config");
      }
View Full Code Here

        String fees = descriptionForm.getFees();
        String maintainer = descriptionForm.getMaintainer();
        String keywords = descriptionForm.getKeywords();
        String _abstract = descriptionForm.get_abstract();

        WMSConfig config = getWMSConfig();
        config.setName(name);
        config.setTitle(title);
        config.setAccessConstraints(accessConstraints);
        config.setFees(fees);
        config.setMaintainer(maintainer);
        config.setAbstract(_abstract);

        String[] array = (keywords != null)
            ? keywords.split(System.getProperty("line.separator")) : new String[0];

        config.setKeywords(array);
        getApplicationState().notifyConfigChanged();

        return mapping.findForward("config");
    }
View Full Code Here

     * DOCUMENT ME!
     *
     * @return DOCUMENT ME!
     */
    protected Response getResponseHandler() {
        WMSConfig config = (WMSConfig) getServletContext().getAttribute(WMSConfig.CONFIG_KEY);

        return new GetMapResponse(config);
    }
View Full Code Here

  }
  public void reset(ActionMapping mapping, HttpServletRequest request) {
        super.reset(mapping, request);

        ServletContext context = getServlet().getServletContext();
        WMSConfig config = (WMSConfig) context.getAttribute(WMSConfig.CONFIG_KEY);

        svgRenderer = config.getSvgRenderer();
        if (svgRenderer == null)
          svgRenderer = WMSConfig.SVG_SIMPLE;
       
        svgAntiAlias = config.getSvgAntiAlias();
  }
View Full Code Here

        super.reset(arg0, arg1);

        enabledChecked = false;

        ServletContext context = getServlet().getServletContext();
        WMSConfig config = (WMSConfig) context.getAttribute(WMSConfig.CONFIG_KEY);

        this.enabled = config.isEnabled();

        URL url = config.getOnlineResource();

        if (url != null) {
            this.onlineResource = url.toString();
        } else {
            this.onlineResource = "";
View Full Code Here

    public void reset(ActionMapping arg0, HttpServletRequest arg1) {
        super.reset(arg0, arg1);

        ServletContext context = getServlet().getServletContext();
        WMSConfig config = (WMSConfig) context.getAttribute(WMSConfig.CONFIG_KEY);

        this.name = config.getName();
        this._abstract = config.getAbstract();
        this.fees = config.getFees();
        this.maintainer = config.getMaintainer();
        this.title = config.getTitle();
        this.accessConstraints = config.getAccessConstraints();

        String out = "";

        for (int i = 0; i < config.getKeywords().length; i++) {
            out = out + config.getKeywords()[i]
                + System.getProperty("line.separator");
        }

        this.keywords = out;
    }
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.config.WMSConfig

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.