Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14114

Static resolver extension for validation with xsd

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.24.2
    • Fix Version/s: None
    • Component/s: came-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In our project, we process xml documents and pass each document through one of the xsd schemes that we store in the mongo database. The problem is that with the xslt conversion we perform by calling

      transactedDefinition.to ("xslt: mongo: dbf860e2-2589-4113-9c26-7cc2235f306d")
      

      And Camel uses SpringUriResolver, which can be redefined so that it understands the mongo protocol. In ValidationEndPoint, a SchemaReader is created explicitly setting the class in the constructor and cannot be overridden, and the standard SchemaReader does resolving by calling the static method

      org.apache.camel.util.ResourceHelper#resolveMandatoryResourceAsInputStream (org.apache.camel.CamelContext, java.lang.String)
      

      In the end, I had to override ValidationEndPoint and SchemaReader to add mongo protocol recognition there.
      Is it possible to make using SpringUriResolver in ValidationEndPoint?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Agarkov Stanislav Agarkov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: