public final class SimpleDistributionRequest extends Object implements DistributionRequest
SimpleDistributionRequest
is a DistributionRequest
where all paths are either "deep" or "shallow".Constructor and Description |
---|
SimpleDistributionRequest(DistributionRequestType requestType,
boolean isDeep,
String... paths)
Creates distribution request with "deep" or "shallow" paths.
|
SimpleDistributionRequest(DistributionRequestType requestType,
String... paths)
Creates a distribution request with "shallow" paths.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getPaths()
get the paths for this distribution request
|
DistributionRequestType |
getRequestType()
get the
DistributionRequestType associated with this request |
boolean |
isDeep(String path)
Returns whether the a path is covering the entire subtree (deep) or just the specified nodes (shallow)
|
String |
toString() |
public SimpleDistributionRequest(DistributionRequestType requestType, boolean isDeep, 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(DistributionRequestType requestType, String... paths)
requestType
- the request typepaths
- the array of paths to be distributedpublic DistributionRequestType getRequestType()
DistributionRequestType
associated with this requestgetRequestType
in interface DistributionRequest
DistributionRequestType
public String[] getPaths()
getPaths
in interface DistributionRequest
public boolean isDeep(String path)
isDeep
in interface DistributionRequest
path
- the path to be checkedtrue
if the path is deep"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"