Examples of IOriginalXmlProvider


Examples of com.esri.gpt.server.csw.provider.components.IOriginalXmlProvider

                               String id)
    throws Exception {
    RequestHandler handler = this.makeRequestHandler(request,response,context);
    OperationContext opContext = handler.getOperationContext();
    IProviderFactory factory = opContext.getProviderFactory();
    IOriginalXmlProvider oxp = factory.makeOriginalXmlProvider(opContext);
    if (oxp == null) {
      String msg = "The getxml parameter is not supported.";
      String locator = "getxml";
      throw new OwsException(OwsException.OWSCODE_InvalidParameterValue,locator,msg);
    } else {
      String xml = oxp.provideOriginalXml(opContext,id);
      return xml;
    }
  }
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.IOriginalXmlProvider

    if (outputSchema.equalsIgnoreCase("original")) {
     
      // respond with the original XML
      this.validateIfOriginalSchema(context,"csw:Id","@outputSchema");
     
      IOriginalXmlProvider oxp = factory.makeOriginalXmlProvider(context);
      if (oxp == null) {
        String msg = "IProviderFactory.makeOriginalXmlProvider: instantiation failed.";
        LOGGER.log(Level.SEVERE,msg);
        throw new OwsException(msg);        
      } else {
        String id = qOptions.getIDs().iterator().next();
        String xml = oxp.provideOriginalXml(context,id);
        context.getOperationResponse().setResponseXml(xml);
      }
     
    } else {
     
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.IOriginalXmlProvider

      }
   
    // non Dublin Core based responses
    } else {
     
      IOriginalXmlProvider oxp = context.getProviderFactory().makeOriginalXmlProvider(context);
      DiscoveredRecords records = query.getResult().getRecords();
      for (DiscoveredRecord record: records) {
        String responseXml = Val.chkStr(record.getResponseXml());
        if (responseXml.length() > 0) {
          Document dom = DomUtil.makeDomFromString(responseXml,true);
View Full Code Here

Examples of com.esri.gpt.server.csw.provider.components.IOriginalXmlProvider

        String fullMetadataXml = "";      
        try {
         
          RequestHandler handler = ProviderFactory.newHandler(this.getRequestContext());
          OperationContext ctx = handler.getOperationContext();
          IOriginalXmlProvider oxp = ctx.getProviderFactory().makeOriginalXmlProvider(ctx);
          fullMetadataXml = oxp.provideOriginalXml(ctx,uuid);
         
        } catch (Exception e) {
          throw new SearchException("Error accessing full metadata xml for: "+uuid);
        }
        record.setFullMetadata(fullMetadataXml);
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.