Examples of SldException


Examples of org.geomajas.sld.service.SldException

              allSlds.put(sld.getName(), sld);
            }
          }
        }
      } catch (Exception e) {
        throw new SldException("Could not initialize SLD service", e);
      }
    }
  }
View Full Code Here

Examples of org.geomajas.sld.service.SldException

      mctx.marshalDocument(obj);
      if (log.isDebugEnabled()) {
        log.debug(writer.toString());
      }
    } catch (JiBXException e) {
      throw new SldException("Validation error", e);
    }
  }
View Full Code Here

Examples of org.vfny.geoserver.sld.SldException

            // validate the SLD
            SLDValidator validator = new SLDValidator();
            List errors = validator.validateSLD(fs, context);
   
            if (errors.size() != 0) {
                throw new SldException(SLDValidator.getErrorMessage(xml, errors));
            }
        } finally {
            if(temp != null)
                temp.delete();
        }
View Full Code Here

Examples of org.vfny.geoserver.sld.SldException

        throws SldException {
        String req = getValue("REQUEST");

        if ((req != null) && !req.equals("")) {
            if (!req.equalsIgnoreCase("PutStyles")) {
                throw new SldException("Expecting 'request=PutStyles'");
            }
        }

        String mode = getValue("MODE");

        if ((mode != null) && !mode.equals("")) {
            if (mode.equalsIgnoreCase("InsertAndReplace") || mode.equalsIgnoreCase("ReplaceAll")) {
                request.setMode(mode);
            } else {
                throw new SldException("Parameter must be 'InsertAndReplace' or 'ReplaceAll'.");
            }
        }
    }
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.