Examples of handleXML()


Examples of com.esri.gpt.server.csw.provider.components.IOperationProvider.handleXML()

      }
    }
   
    // handle the sub-operation
    if (opProvider != null) {
      opProvider.handleXML(context,root,xpath);
    } else {
      locator = "csw:Transaction";
      String msg = "The transaction operation node was missing.";
      throw new OwsException(OwsException.OWSCODE_MissingParameterValue,locator,msg);
    }
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.RequestHandler.handleXML()

    try {
      String cswRequest = readInputCharacters(request);
      LOGGER.finer("cswRequest:\n"+cswRequest);
      handler = this.makeRequestHandler(request,response,context);
      if (cswRequest.length() > 0) {
        opResponse = handler.handleXML(cswRequest);
      } else {
        opResponse = handler.handleGet(request);
      }
      if (opResponse != null) {
        cswResponse = Val.chkStr(opResponse.getResponseXml());
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.RequestHandler.handleXML()

    try {
      GetRecordsGenerator generator = new GetRecordsGenerator(this.getRequestContext());
      String cswRequest = generator.generateCswByIdRequest(uuid);
     
      RequestHandler handler = ProviderFactory.newHandler(this.getRequestContext());
      OperationResponse resp = handler.handleXML(cswRequest);
      cswResponse = resp.getResponseXml();
     
      records = this.parseResponse(cswResponse);
    } catch (DiscoveryException e) {
      throw new SearchException("Error quering GetRecordById: "+e.getMessage(),e);
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.RequestHandler.handleXML()

      if ((obj != null) && (obj instanceof String)) {
        isSitemapRequest = ((String)obj).equalsIgnoreCase("true");
      }
     
      RequestHandler handler = ProviderFactory.newHandler(this.getRequestContext());
      OperationResponse resp = handler.handleXML(cswRequest);
      String cswResponse = resp.getResponseXml();
     
      LOGGER.log(Level.FINER, "cswResponse:\n{0}", cswResponse);
     
      //return this.parseResponse(cswResponse);
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.RequestHandler.handleXML()

    String cswRequest = template.transform(axlRequest, params);
    getLogger().finest(" AXL2CSW transformed request : " + cswRequest);
    String cswResponse = "";
    try {
      RequestHandler handler = ProviderFactory.newHandler(context);
      OperationResponse resp = handler.handleXML(cswRequest);
      cswResponse = resp.getResponseXml();
    } catch (Exception e) {
      throw new SearchException(e);
    }
   
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.RequestHandler.handleXML()

     
      // execute the testable action
      if (action.nodeName.equalsIgnoreCase("url")) {
        handler.handleGet(httpRequest);
      } else if (actionName.equalsIgnoreCase("xml")) {
        handler.handleXML(Val.chkStr(action.nodeText));
      } else if (actionName.equalsIgnoreCase("file")) {
        handler.handleXML(XmlIoUtil.readXml(action.dataFile.getCanonicalPath()));
      } else {
        throw new Exception(action.makeMessagePrefix()+" The action is invalid: "+actionName);
      }
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.RequestHandler.handleXML()

      if (action.nodeName.equalsIgnoreCase("url")) {
        handler.handleGet(httpRequest);
      } else if (actionName.equalsIgnoreCase("xml")) {
        handler.handleXML(Val.chkStr(action.nodeText));
      } else if (actionName.equalsIgnoreCase("file")) {
        handler.handleXML(XmlIoUtil.readXml(action.dataFile.getCanonicalPath()));
      } else {
        throw new Exception(action.makeMessagePrefix()+" The action is invalid: "+actionName);
      }
      if (this.verbose) {
        System.err.println(handler.getOperationContext().getOperationResponse().getResponseXml());
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.