Examples of MissingParameterValueEx


Examples of org.fao.geonet.csw.common.exceptions.MissingParameterValueEx

        String resourceType = request.getChildText("ResourceType", Csw.NAMESPACE_CSW);
        //
        // resourcetype is a required parameter
        //
        if(resourceType == null) {
            throw new MissingParameterValueEx("ResourceType");
        }
        SupportedResourceType supportedResourceType = SupportedResourceType.fromString(resourceType);
        //
        // resource type not supported
        //
View Full Code Here

Examples of org.fao.geonet.csw.common.exceptions.MissingParameterValueEx

        String source = request.getChildText("Source", Csw.NAMESPACE_CSW);
        //
        // source is a required parameter
        //
        if(source == null) {
            throw new MissingParameterValueEx("Source");
        }
        //
        // check that source is a valid url by constructing URL object from it
        //
        try {
View Full Code Here

Examples of org.fao.geonet.csw.common.exceptions.MissingParameterValueEx

     * @throws CatalogException
     */
  protected void checkService(Element request) throws MissingParameterValueEx, InvalidParameterValueEx {
    String service = request.getAttributeValue("service");
    if (StringUtils.isEmpty(service)) {
      throw new MissingParameterValueEx("service");
        }
        // TODO heikki: that csw namespace is not a valid value. Earlier comment here states: "//--- this is just a fix to the incorrect XSD schema default." Check if that's still necessary.
    if(!(service.equals(Csw.SERVICE)||service.equals("http://www.opengis.net/cat/csw"))) {
            throw new InvalidParameterValueEx("service", service);
        }
View Full Code Here

Examples of org.fao.geonet.csw.common.exceptions.MissingParameterValueEx

     * @throws CatalogException
     */
  protected void checkVersion(Element request) throws MissingParameterValueEx, InvalidParameterValueEx {
    String version = request.getAttributeValue("version");
    if (StringUtils.isEmpty(version)) {
      throw new MissingParameterValueEx("version");
        }
    if (!version.equals(Csw.CSW_VERSION)) {
      throw new InvalidParameterValueEx("version", version);
        }
  }
View Full Code Here

Examples of org.fao.geonet.csw.common.exceptions.MissingParameterValueEx

    protected String getFilterVersion(Element constr) throws CatalogException {
    if (constr == null)
      return Csw.FILTER_VERSION_1_1;
    String version = constr.getAttributeValue("version");
    if (version == null)
      throw new MissingParameterValueEx("CONSTRAINT_LANGUAGE_VERSION");

    // Check version in both cas (CQL or filter) in order to specify parser
    // version.
    if (!version.equals(Csw.FILTER_VERSION_1_0)
        && !version.equals(Csw.FILTER_VERSION_1_1))
View Full Code Here

Examples of org.fao.geonet.csw.common.exceptions.MissingParameterValueEx

    @SuppressWarnings("unchecked")
        Iterator<Element> ids = request.getChildren("Id", Csw.NAMESPACE_CSW).iterator();

    if (!ids.hasNext())
      throw new MissingParameterValueEx("id");

    try {
      while(ids.hasNext())
      {
        String  uuid = ids.next().getText();
View Full Code Here

Examples of org.fao.geonet.csw.common.exceptions.MissingParameterValueEx

      Map<String, String> params = extractParams(request);

      String operation = params.get("request");

      if (operation == null)
        throw new MissingParameterValueEx("request");

      CatalogService cs = lookUpService(operation);

      if (cs == null)
        throw new OperationNotSupportedEx(operation);
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.