Package org.fao.geonet.kernel.csw

Examples of org.fao.geonet.kernel.csw.CatalogService


      domainValues.addContent(pn.setText(paramName));
     
      String operationName = paramName.substring(0, paramName.indexOf('.'));
      String parameterName = paramName.substring(paramName.indexOf('.')+1);
     
      CatalogService cs = checkOperation(operationName);
      values = cs.retrieveValues(parameterName);
     
      // values null mean that the catalog was unable to determine
      // anything about the specified parameter
      if (values != null)
        domainValues.addContent(values);
View Full Code Here


  //---------------------------------------------------------------------------
 
  private CatalogService checkOperation(String operationName)
      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

    if (im == InputMethod.XML || im == InputMethod.SOAP)
    {
      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));
      }

            if(context.isDebugEnabled())
                context.debug("Adapted GET request is:\n"+Xml.getString(request));
      context.info("Dispatching operation : "+ operation);

      return cs.execute(request, context);
    }
  }
View Full Code Here

TOP

Related Classes of org.fao.geonet.kernel.csw.CatalogService

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.