@ProviderType public final class SimpleDistributionRequest extends java.lang.Object implements DistributionRequest
SimpleDistributionRequest is a DistributionRequest where all paths are either "deep" or "shallow".| Constructor and Description |
|---|
SimpleDistributionRequest(DistributionRequestType requestType,
boolean isDeep,
java.lang.String... paths)
Creates distribution request with "deep" or "shallow" paths.
|
SimpleDistributionRequest(DistributionRequestType requestType,
java.lang.String... paths)
Creates a distribution request with "shallow" paths.
|
SimpleDistributionRequest(DistributionRequestType requestType,
java.lang.String[] paths,
java.util.Set<java.lang.String> deepPaths)
Creates a distribution request with additional "deep" paths.
|
SimpleDistributionRequest(DistributionRequestType requestType,
java.lang.String[] paths,
java.util.Set<java.lang.String> deepPaths,
java.util.Map<java.lang.String,java.lang.String[]> pathFilters)
Creates a distribution request with "deep" paths and filters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getFilters(java.lang.String path)
Get the filters applicable for a specific path
+/foo/.* - include all content under /foo
-/foo - exclude /foo node
filters are checked in order and the last matched filter determines inclusion/exclusion
|
java.lang.String[] |
getPaths()
get the paths for this distribution request
|
DistributionRequestType |
getRequestType()
get the
DistributionRequestType associated with this request |
boolean |
isDeep(java.lang.String path)
Returns whether the a path is covering the entire subtree (deep) or just the specified nodes (shallow)
|
java.lang.String |
toString() |
public SimpleDistributionRequest(@Nonnull
DistributionRequestType requestType,
boolean isDeep,
@Nonnull
java.lang.String... paths)
requestType - the request typeisDeep - is true if all paths are "deep" and is false if all paths are "shallow"paths - the array of paths to be distributedpublic SimpleDistributionRequest(@Nonnull
DistributionRequestType requestType,
@Nonnull
java.lang.String... paths)
requestType - the request typepaths - the array of paths to be distributedpublic SimpleDistributionRequest(@Nonnull
DistributionRequestType requestType,
@Nonnull
java.lang.String[] paths,
@Nonnull
java.util.Set<java.lang.String> deepPaths)
requestType - the request typepaths - the array of paths to be distributeddeepPaths - the set of paths that are to be distributed in depth (with all their children)public SimpleDistributionRequest(@Nonnull
DistributionRequestType requestType,
@Nonnull
java.lang.String[] paths,
@Nonnull
java.util.Set<java.lang.String> deepPaths,
@Nonnull
java.util.Map<java.lang.String,java.lang.String[]> pathFilters)
requestType - the request typepaths - the array of paths to be distributeddeepPaths - the set of paths that are to be distributed in depth (with all their children)pathFilters - the filters applicable for each path@Nonnull public DistributionRequestType getRequestType()
DistributionRequestType associated with this requestgetRequestType in interface DistributionRequestDistributionRequestTypepublic java.lang.String[] getPaths()
getPaths in interface DistributionRequestpublic boolean isDeep(@Nonnull
java.lang.String path)
isDeep in interface DistributionRequestpath - the path to be checkedtrue if the path is deep@Nonnull public java.lang.String[] getFilters(java.lang.String path)
DistributionRequestgetFilters in interface DistributionRequestpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved