Interface UriBasedDocumentDataProvider

All Superinterfaces:
DocumentDataProvider<UriSource,UriHandle>
All Known Implementing Classes:
DemoUploadSchemeDocumentDataProvider

public interface UriBasedDocumentDataProvider extends DocumentDataProvider<UriSource,UriHandle>
An interface for specialized DocumentDataProviders. A DataProviders that implement this interface reacts to a specific URI scheme (e.g. http, ftp, ...). Per definition, those DataProviders don't use generics as they all rely on UriSource and UriHandle under the hood.
  • Method Summary

    Modifier and Type
    Method
    Description
    default UriHandle
    Creates the required UriSource for loading the document
    default List<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Schemes are now defined via the UriScheme Annotation
    default boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Schemes are now defined via the UriScheme Annotation

    Methods inherited from interface com.levigo.jadice.web.server.DocumentDataProvider

    read, recover
  • Method Details

    • pertainsTo

      @Deprecated(forRemoval=true, since="6.39.0") default boolean pertainsTo(String scheme)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Schemes are now defined via the UriScheme Annotation
      The DataProvider should return here, which URI-schemes it pertains to
      Parameters:
      scheme -
      Returns:
      true if the given scheme is applicable for this DataProvider
    • createSourceHandle

      default UriHandle createSourceHandle(UriSource source)
      Creates the required UriSource for loading the document
      Specified by:
      createSourceHandle in interface DocumentDataProvider<UriSource,UriHandle>
      Parameters:
      source - The UriSource the Handle should be created from.
      Returns:
    • getSchemes

      @Deprecated(forRemoval=true, since="6.39.0") default List<String> getSchemes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Schemes are now defined via the UriScheme Annotation
      The DataProvider should return here, which URI-schemes it pertains to
      Returns: