public class SimpleHttpDistributionTransport extends Object implements DistributionTransport
DistributionTransport| Constructor and Description |
|---|
SimpleHttpDistributionTransport(DefaultDistributionLog log,
DistributionEndpoint distributionEndpoint,
DistributionPackageBuilder packageBuilder,
org.apache.sling.distribution.transport.DistributionTransportSecretProvider secretProvider,
HttpConfiguration httpConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
deliverPackage(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull DistributionPackage distributionPackage,
@NotNull DistributionTransportContext distributionContext)
Deliver a
DistributionPackage to a target instance using this
transport layer implementation. |
@Nullable RemoteDistributionPackage |
retrievePackage(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull org.apache.sling.distribution.DistributionRequest distributionRequest,
@NotNull DistributionTransportContext distributionContext)
Retrieve
DistributionPackages from a target Sling instance, which
will create them according to DistributionRequest. |
public SimpleHttpDistributionTransport(DefaultDistributionLog log, DistributionEndpoint distributionEndpoint, DistributionPackageBuilder packageBuilder, org.apache.sling.distribution.transport.DistributionTransportSecretProvider secretProvider, HttpConfiguration httpConfiguration)
public void deliverPackage(@NotNull
@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull
@NotNull DistributionPackage distributionPackage,
@NotNull
@NotNull DistributionTransportContext distributionContext)
throws DistributionException
DistributionTransportDistributionPackage to a target instance using this
transport layer implementation.deliverPackage in interface DistributionTransportresourceResolver - a resolver used to eventually access local resources needed by the transport algorithmdistributionPackage - a DistributionPackage to transportDistributionException - if the DistributionPackage
fails to be delivered to the target instance (e.g. because of network, I/O issues)@Nullable public @Nullable RemoteDistributionPackage retrievePackage(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull org.apache.sling.distribution.DistributionRequest distributionRequest, @NotNull @NotNull DistributionTransportContext distributionContext) throws DistributionException
DistributionTransportDistributionPackages from a target Sling instance, which
will create them according to DistributionRequest.retrievePackage in interface DistributionTransportresourceResolver - a resolver used to eventually access local resources needed by the transport algorithmdistributionRequest - a DistributionRequest to be forwarded to the target
instanceIterable of DistributionPackages fetched
from the target instance.DistributionException - if the DistributionPackages
fail to be retrieved from the target instanceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.