Class DistributionPackageInfo
java.lang.Object
org.apache.sling.api.wrappers.ValueMapDecorator
org.apache.sling.distribution.packaging.DistributionPackageInfo
@ProviderType
public final class DistributionPackageInfo
extends ValueMapDecorator
implements ValueMap
Additional information about a package.
Additional information is optional and components should expect every piece of it to be null.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDistributionPackageInfo(String packageType) Creates a new wrapper around an empty map.DistributionPackageInfo(String packageType, Map<String, Object> base) Creates a new wrapper around a given map. -
Method Summary
Methods inherited from class org.apache.sling.api.wrappers.ValueMapDecorator
clear, containsKey, containsValue, entrySet, equals, get, get, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
PROPERTY_PACKAGE_TYPE
distribution package type- See Also:
-
PROPERTY_REQUEST_PATHS
distribution request paths- See Also:
-
PROPERTY_REQUEST_DEEP_PATHS
distribution request deep paths- See Also:
-
PROPERTY_REQUEST_TYPE
distribution request type- See Also:
-
-
Constructor Details
-
DistributionPackageInfo
Creates a new wrapper around a given map.- Parameters:
packageType- type of packagebase- wrapped object
-
DistributionPackageInfo
Creates a new wrapper around an empty map.- Parameters:
packageType- type of package
-
-
Method Details
-
getType
-
getPaths
get the paths covered by the package holding this info- Returns:
- an array of paths
-
getRequestType
get the request type associated to the package holding this info- Returns:
- the request type
-
toString
- Overrides:
toStringin classValueMapDecorator
-