Package org.vfny.geoserver.global.dto

Examples of org.vfny.geoserver.global.dto.WMSDTO


    //UserContainer user,
    HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException {
        ServletContext sc = request.getSession().getServletContext();

        WMSDTO wmsDTO = null;
        WFSDTO wfsDTO = null;
        GeoServerDTO geoserverDTO = null;
        DataDTO dataDTO = null;
        //DJB: changed for geoserver_data_dir   
       // File rootDir = new File(sc.getRealPath("/"));
View Full Code Here


  private static void setUpMockGeoServer(MockHttpServletRequest request)
      throws ConfigurationException, IOException {

    final GeoServer mockGeoServer = new GeoServer();
    final Data citeData = createTestCiteData(mockGeoServer);
    WMSDTO wmsDto = newWmsDto();
    WMS wms = new WMS(wmsDto) {
      public Data getData() {
        return citeData;
      }
    };
View Full Code Here

   * </p>
   *
   * @return
   */
  public static WMSDTO newWmsDto() {
    WMSDTO dto = new WMSDTO();
    dto.setGmlPrefixing(true);
    ServiceDTO service = new ServiceDTO();
    service.setAbstract("test abstract");
    service.setAccessConstraints("NONE");
    service.setEnabled(true);
    service.setFees("NONE");
    service
        .setKeywords(new String[] { "test", "mock", "service", "config" });
    service.setMaintainer("Gabriel Roldan");
    service.setName("WMS");
    try {
      service.setOnlineResource(new URL("http://www.axios.es"));
    } catch (Exception e) {
      // no-op
    }
    service.setTitle("My mock WMS");
    dto.setService(service);
    return dto;
  }
View Full Code Here

     * @return a copy of the data in a ServiceDTO object
     *
     * @see org.vfny.geoserver.config.DataStructure#toDTO()
     */
    public WMSDTO toDTO() {
        WMSDTO wmsDto = new WMSDTO();
        wmsDto.setService((ServiceDTO) super.toServDTO());
        wmsDto.setSvgRenderer(svgRenderer);
        wmsDto.setSvgAntiAlias(svgAntiAlias);
        return wmsDto;
    }
View Full Code Here

     *
     * @see org.vfny.geoserver.global.GlobalLayerSupertype#toDTO()
     * @see WMSDTO
     */
    public Object toDTO() {
        WMSDTO w = new WMSDTO();
        w.setService((ServiceDTO)super.toDTO());
        w.setSvgRenderer(svgRenderer);
        w.setSvgAntiAlias(svgAntiAlias);
       
        return w;
    }
View Full Code Here

            fBounds = w.isFeatureBounding();
            srsXmlStyle = w.isSrsXmlStyle();
            serviceLevel = w.getServiceLevel();
            citeConformanceHacks = w.getCiteConformanceHacks();
        } else if (obj instanceof WMSDTO) {
            WMSDTO w = (WMSDTO) obj;
            s = w.getService();
            t = "WMS";
            svgRenderer = w.getSvgRenderer();
            svgAntiAlias = w.getSvgAntiAlias();
        } else {
            throw new ConfigurationException("Invalid object: not WMS of WFS");
        }

        Map atrs = new HashMap();
View Full Code Here

     * Should never be called.
     * </p>
     */
    protected XMLConfigReader(ServletContext context) {
      this.context = context;
      wms = new WMSDTO();
        wfs = new WFSDTO();
        geoServer = new GeoServerDTO();
        data = new DataDTO();
        root = new File(".");
    }
View Full Code Here

     * @throws ConfigurationException When an error occurs.
     */
    public XMLConfigReader(File root, ServletContext context) throws ConfigurationException {
        this.root = root;
        this.context = context;
        wms = new WMSDTO();
        wfs = new WFSDTO();
        geoServer = new GeoServerDTO();
        data = new DataDTO();
        load();
        initialized = true;
View Full Code Here

     * @throws ConfigurationException When an error occurs.
     *
     * @see GlobalData#getBaseUrl()
     */
    protected void loadWMS(Element wmsElement) throws ConfigurationException {
        wms = new WMSDTO();
        wms.setService(loadService(wmsElement));

        wms.setSvgRenderer(ReaderUtils.getChildText(wmsElement, "svgRenderer"));
        wms.setSvgAntiAlias(!"false".equals(ReaderUtils.getChildText(
                    wmsElement, "svgAntiAlias")));
View Full Code Here

        throws IOException, ServletException {
        GeoServer gs;
        ServletContext sc = request.getSession().getServletContext();

        try {
            WMSDTO wmsDTO = getWMSConfig().toDTO();
            WFSDTO wfsDTO = getWFSConfig().toDTO();
            GeoServerDTO geoserverDTO = getGlobalConfig().toDTO();
            DataDTO dataDTO = getDataConfig().toDTO();

            getWFS(request).load(wfsDTO);
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.global.dto.WMSDTO

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.