Interface ResourceResolver

All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, Service, StaticService

public interface ResourceResolver extends StaticService, CamelContextAware
SPI for loading resources.
  • Field Details

    • FACTORY_PATH

      static final String FACTORY_PATH
      Service factory base path for scheme specific resolver.
      See Also:
  • Method Details

    • getSupportedScheme

      String getSupportedScheme()
      The supported resource scheme.

      Implementations should support a single scheme only.

    • resolve

      Resource resolve(String location)
      Resolve a Resource from a give uri.
      Parameters:
      location - the location of the resource to resolve.
      Returns:
      an Resource, null if was not possible to resolve the resource.