Class BinaryDownloadUriProvider

java.lang.Object
org.apache.sling.jcr.resource.internal.helper.jcr.BinaryDownloadUriProvider
All Implemented Interfaces:
URIProvider

public class BinaryDownloadUriProvider extends Object implements URIProvider
Provides URIs for direct binary read-access based on the Jackrabbit API BinaryDownload.
See Also:
  • Constructor Details

  • Method Details

    • toURI

      @NotNull public @NotNull URI toURI(@NotNull @NotNull Resource resource, @NotNull @NotNull URIProvider.Scope scope, @NotNull @NotNull URIProvider.Operation operation)
      Description copied from interface: URIProvider
      Return a URI applicable to the defined scope.
      Specified by:
      toURI in interface URIProvider
      Parameters:
      resource - the resource to convert from.
      scope - the required scope.
      operation - the required operation.
      Returns:
      a URI if the resource has a URI suitable for the requested scope and operation, otherwise the implementation should throw an IlleagalArgumentException.
    • getPrimaryProperty

      @NotNull protected @NotNull javax.jcr.Property getPrimaryProperty(@NotNull @NotNull javax.jcr.Node node) throws javax.jcr.RepositoryException
      Throws:
      javax.jcr.RepositoryException