Package org.vfny.geoserver.util

Examples of org.vfny.geoserver.util.SLDValidator$Validator


   * @param file
   * @return
   */
  private List getSchemaExceptions(FormFile file, HttpServletRequest request)
  {
    SLDValidator validator = new SLDValidator();
   
    ServletContext sc = request.getSession().getServletContext();
    try{
      List l = validator.validateSLD(file.getInputStream(),sc );
      return l;
    }
    catch (Exception e)
    {
      ArrayList al = new ArrayList();
View Full Code Here


            CharArrayReader xml = new CharArrayReader(sld_body.toCharArray()); // put the xml into a 'Reader'
   
            rootNode = generateDOM(xml);
   
            // validate the SLD
            SLDValidator validator = new SLDValidator();
            String baseURL = ResponseUtils.baseURL(request);
            List errors = validator.validateSLD(fs, baseURL);
   
            if (errors.size() != 0) {
                throw new SldException(SLDValidator.getErrorMessage(xml, errors));
            }
        } finally {
View Full Code Here

     *
     * @throws Exception
     * @throws ServiceException
     */
    public void validateSchemaSLD(File f, GetMapRequest getMapRequest) throws Exception {
        SLDValidator validator = new SLDValidator();
        List errors = null;

        try {
            FileInputStream in = null;

            try {
                in = new FileInputStream(f);
                errors = validator.validateSLD(in, getMapRequest.getBaseUrl());
            } finally {
                if (in != null) {
                    in.close();
                }
            }
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.util.SLDValidator$Validator

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.