Class ManifestUtils
- java.lang.Object
-
- com.sun.enterprise.universal.collections.ManifestUtils
-
public class ManifestUtils extends Object
all-static methods for handling operations with Manifests It automatically replace all occurences of EOL_TOKEN with linefeeds- Author:
- bnevins
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
decode(String input)
static String
encode(String input)
static Map<String,String>
getMain(Map<String,Map<String,String>> exManifest)
static Map<String,String>
normalize(Attributes att)
Convert an Aattributes object into a Mapstatic Map<String,Map<String,String>>
normalize(Manifest m)
Convert a Manifest into an easier data structure.
-
-
-
Field Detail
-
EOL_TOKEN
public static final String EOL_TOKEN
Embed this token to encode linefeeds in Strings that are placed in Manifest objects- See Also:
- Constant Field Values
-
MAIN_ATTS
public static final String MAIN_ATTS
The name of the Manifest's main attributes.- See Also:
- Constant Field Values
-
EOL
public static final String EOL
The line separator character on this OS
-
-
Method Detail
-
normalize
public static final Map<String,Map<String,String>> normalize(Manifest m)
Convert a Manifest into an easier data structure. It returns a Map of Maps. The main attributes become the map where the key is MAIN_ATTS. Entries become named maps as in the Manifest- Parameters:
m
-- Returns:
-
normalize
public static final Map<String,String> normalize(Attributes att)
Convert an Aattributes object into a Map- Parameters:
att
-- Returns:
-
-