Interface ValidatorResourceResolverFactory

  • All Known Implementing Classes:
    DefaultValidatorResourceResolverFactory

    public interface ValidatorResourceResolverFactory
    Can be used to create custom resource resolver for the validator endpoint. This interface is useful, if the custom resource resolver depends on the resource URI specified in the validator endpoint. The resource URI of the endpoint can be even dynamic, like in the following example:
     <camel:recipientList> 
          <camel:simple>validator:${header.XSD_FILE}?resourceResolverFactory=#resourceResolverFactory</camel:simple>
     </camel:recipientList>
     
    The dynamic resource URI given in ${header.XSD_FILE} will be past as rootResourceUri parameter in the method createResourceResolver(CamelContext, String)
    • Method Detail

      • createResourceResolver

        LSResourceResolver createResourceResolver​(org.apache.camel.CamelContext camelContext,
                                                  String rootResourceUri)
        Method is called during the creation of a validator endpoint.
        Parameters:
        camelContext - camel context
        rootResourceUri - resource URI specified in the endpoint URI
        Returns:
        resource resolver