Examples of WFSDTO


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

    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

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

     * @return a copy of the data in a ServiceDTO object
     *
     * @see org.vfny.geoserver.config.DataStructure#toDTO()
     */
    public WFSDTO toDTO() {
        WFSDTO wfsDto = new WFSDTO();
        wfsDto.setService((ServiceDTO) super.toServDTO());
        wfsDto.setServiceLevel(serviceLevel);
        wfsDto.setSrsXmlStyle(srsXmlStyle);

        wfsDto.setCiteConformanceHacks(citeConformanceHacks);
        wfsDto.setFeatureBounding(featureBounding);

        return wfsDto;
    }
View Full Code Here

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

     *
     * @see org.vfny.geoserver.global.GlobalLayerSupertype#toDTO()
     * @see WFSDTO
     */
    public Object toDTO() {
        WFSDTO dto = new WFSDTO();
        dto.setService((ServiceDTO) super.toDTO());
       
        dto.setServiceLevel(serviceLevel);
        dto.setSrsXmlStyle(srsXmlStyle);
        dto.setCiteConformanceHacks(citeConformanceHacks);
        dto.setFeatureBounding(featureBounding);

        return dto;
    }
View Full Code Here

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

        String svgRenderer = null;
        boolean svgAntiAlias = false;
        boolean citeConformanceHacks = false;

        if (obj instanceof WFSDTO) {
            WFSDTO w = (WFSDTO) obj;
            s = w.getService();
            t = "WFS";
           
            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

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

     * </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

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

     */
    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

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

     * @throws ConfigurationException When an error occurs.
     *
     * @see GlobalData#getBaseUrl()
     */
    protected void loadWFS(Element wfsElement) throws ConfigurationException {
        wfs = new WFSDTO();

        //try {
       
        wfs.setFeatureBounding(ReaderUtils.getBooleanAttribute(
                ReaderUtils.getChildElement(wfsElement, "featureBounding"),
View Full Code Here

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

        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);
            getWMS(request).load(wmsDTO);
View Full Code Here

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

      public Data getData() {
        return citeData;
      }
    };

    WFSDTO wfsDto = newWfsDto();
    WFS wfs = new WFS(wfsDto) {
      public Data getData() {
        return citeData;
      }
    };
View Full Code Here

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

   * </p>
   *
   * @return
   */
  public static WFSDTO newWfsDto() {
    WFSDTO dto = new WFSDTO();
    dto.setCiteConformanceHacks(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);
    dto.setServiceLevel(WFSDTO.COMPLETE);

    return dto;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.