public class SimpleDistributionPackage extends AbstractDistributionPackage implements SharedDistributionPackage
DistributionPackage is used for deletion of certain paths on the target instancePACKAGES_ROOT| Constructor and Description |
|---|
SimpleDistributionPackage(org.apache.sling.distribution.DistributionRequest request,
String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(String... holderNames)
acquire a reference to this package and increase the reference count.
|
void |
close()
closes all resources associated with this instance
|
@NotNull InputStream |
createInputStream()
creates a package stream.
|
void |
delete()
releases all resources associated with this package
|
static SimpleDistributionPackage |
fromIdString(String id,
String type) |
static SimpleDistributionPackage |
fromStream(InputStream stream,
String type) |
long |
getSize() |
void |
release(String... holderNames)
release a reference to this package and decrease the reference count.
|
String |
toString() |
getDigestAlgorithm, getDigestMessage, getId, getInfo, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetId, getInfo, getTypepublic SimpleDistributionPackage(org.apache.sling.distribution.DistributionRequest request,
String type)
public static SimpleDistributionPackage fromIdString(String id, String type)
@NotNull public @NotNull InputStream createInputStream() throws IOException
DistributionPackagecreateInputStream in interface DistributionPackageInputStreamIOExceptionpublic long getSize()
getSize in interface DistributionPackagepublic void close()
DistributionPackageclose in interface DistributionPackagepublic void delete()
DistributionPackagedelete in interface DistributionPackagepublic static SimpleDistributionPackage fromStream(InputStream stream, String type)
public void acquire(@NotNull
String... holderNames)
SharedDistributionPackageacquire in interface SharedDistributionPackagepublic void release(@NotNull
String... holderNames)
SharedDistributionPackageDistributionPackage#delete method will be invoked.release in interface SharedDistributionPackageCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.