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
|
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() |
getId, getInfo, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getInfo, getType
public SimpleDistributionPackage(org.apache.sling.distribution.DistributionRequest request, String type)
public static SimpleDistributionPackage fromIdString(String id, String type)
@Nonnull public InputStream createInputStream() throws IOException
DistributionPackage
createInputStream
in interface DistributionPackage
InputStream
IOException
public long getSize()
getSize
in interface DistributionPackage
public void close()
DistributionPackage
close
in interface DistributionPackage
public void delete()
DistributionPackage
delete
in interface DistributionPackage
public static SimpleDistributionPackage fromStream(InputStream stream, String type)
public void acquire(@Nonnull String[] holderNames)
SharedDistributionPackage
acquire
in interface SharedDistributionPackage
public void release(@Nonnull String[] holderNames)
SharedDistributionPackage
DistributionPackage#delete
method is called.release
in interface SharedDistributionPackage
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.