Package org.fao.geonet.csw.common.exceptions

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


      throws CatalogException {

    CatalogService cs = springAppContext.getBean(CatalogService.BEAN_PREFIX+operationName, CatalogService.class);

    if (cs == null)
      throw new OperationNotSupportedEx(operationName);

    return cs;
  }
View Full Code Here


      String operation = request.getName();

      CatalogService cs = lookUpService(operation);

      if (cs == null)
        throw new OperationNotSupportedEx(operation);

      Log.info(Geonet.CSW, "Dispatching operation : "+ operation);

            if (cswServiceSpecificContraint != null){
        request.addContent(new Element(Geonet.Elem.FILTER).setText(cswServiceSpecificContraint));
      }

      return cs.execute(request, context);
    }

    else //--- GET or POST/www-encoded request
    {
      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);

      request = cs.adaptGetRequest(params);

            if (cswServiceSpecificContraint != null){
        request.addContent(new Element(Geonet.Elem.FILTER).setText(cswServiceSpecificContraint));
View Full Code Here

TOP

Related Classes of org.fao.geonet.csw.common.exceptions.OperationNotSupportedEx

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.