Class DistributionPackageInfo
- java.lang.Object
-
- org.apache.sling.api.wrappers.ValueMapDecorator
-
- org.apache.sling.distribution.packaging.DistributionPackageInfo
-
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>
,ValueMap
@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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_PACKAGE_TYPE
distribution package typestatic java.lang.String
PROPERTY_REQUEST_DEEP_PATHS
distribution request deep pathsstatic java.lang.String
PROPERTY_REQUEST_PATHS
distribution request pathsstatic java.lang.String
PROPERTY_REQUEST_TYPE
distribution request type
-
Constructor Summary
Constructors Constructor Description DistributionPackageInfo(java.lang.String packageType)
Creates a new wrapper around an empty map.DistributionPackageInfo(java.lang.String packageType, java.util.Map<java.lang.String,java.lang.Object> base)
Creates a new wrapper around a given map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.String[]
getPaths()
get the paths covered by the package holding this info@Nullable DistributionRequestType
getRequestType()
get the request type associated to the package holding this info@NotNull java.lang.String
getType()
java.lang.String
toString()
-
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, values
-
-
-
-
Field Detail
-
PROPERTY_PACKAGE_TYPE
public static final java.lang.String PROPERTY_PACKAGE_TYPE
distribution package type- See Also:
- Constant Field Values
-
PROPERTY_REQUEST_PATHS
public static final java.lang.String PROPERTY_REQUEST_PATHS
distribution request paths- See Also:
- Constant Field Values
-
PROPERTY_REQUEST_DEEP_PATHS
public static final java.lang.String PROPERTY_REQUEST_DEEP_PATHS
distribution request deep paths- See Also:
- Constant Field Values
-
PROPERTY_REQUEST_TYPE
public static final java.lang.String PROPERTY_REQUEST_TYPE
distribution request type- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DistributionPackageInfo
public DistributionPackageInfo(java.lang.String packageType, java.util.Map<java.lang.String,java.lang.Object> base)
Creates a new wrapper around a given map.- Parameters:
base
- wrapped objectpackageType
- type of package
-
DistributionPackageInfo
public DistributionPackageInfo(java.lang.String packageType)
Creates a new wrapper around an empty map.- Parameters:
packageType
- type of package
-
-
Method Detail
-
getType
@NotNull public @NotNull java.lang.String getType()
-
getPaths
@Nullable public @Nullable java.lang.String[] getPaths()
get the paths covered by the package holding this info- Returns:
- an array of paths
-
getRequestType
@Nullable public @Nullable DistributionRequestType getRequestType()
get the request type associated to the package holding this info- Returns:
- the request type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classValueMapDecorator
-
-