Class PackageServlet.DownloadOperation

  • All Implemented Interfaces:
    ServletOperation
    Enclosing class:
    PackageServlet

    protected class PackageServlet.DownloadOperation
    extends Object
    implements ServletOperation
    Enables downloading packages. If the path is a JCR path to a package, we deliver it from there, otherwise we try to find it in the PackageRegistries.
    • Constructor Detail

      • DownloadOperation

        protected DownloadOperation()
    • Method Detail

      • deliverJcrPackage

        protected boolean deliverJcrPackage​(@Nonnull
                                            org.apache.sling.api.SlingHttpServletResponse response,
                                            @Nonnull
                                            org.apache.jackrabbit.vault.packaging.JcrPackage jcrPackage)
                                     throws javax.jcr.RepositoryException,
                                            IOException
        Throws:
        javax.jcr.RepositoryException
        IOException
      • deliverRegistryPackage

        protected boolean deliverRegistryPackage​(@Nonnull
                                                 org.apache.sling.api.SlingHttpServletRequest request,
                                                 @Nonnull
                                                 org.apache.sling.api.SlingHttpServletResponse response,
                                                 @Nonnull
                                                 org.apache.jackrabbit.vault.packaging.JcrPackageManager manager)
                                          throws IOException,
                                                 javax.jcr.RepositoryException
        Throws:
        IOException
        javax.jcr.RepositoryException