Class PackageServlet.DownloadOperation
- java.lang.Object
-
- com.composum.sling.core.pckgmgr.jcrpckg.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 Summary
Constructors Modifier Constructor Description protected
DownloadOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
deliverJcrPackage(org.apache.sling.api.SlingHttpServletResponse response, org.apache.jackrabbit.vault.packaging.JcrPackage jcrPackage)
protected boolean
deliverRegistryPackage(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, org.apache.jackrabbit.vault.packaging.JcrPackageManager manager)
void
doIt(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, ResourceHandle resource)
-
-
-
Method Detail
-
doIt
public void doIt(@Nonnull org.apache.sling.api.SlingHttpServletRequest request, @Nonnull org.apache.sling.api.SlingHttpServletResponse response, ResourceHandle resource) throws javax.jcr.RepositoryException, IOException
- Specified by:
doIt
in interfaceServletOperation
- Throws:
javax.jcr.RepositoryException
IOException
-
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
-
-