public class HeaderFields extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KEY_ContentTransferEncoding |
static String |
KEY_ContentType |
static String |
KEY_Language |
static String |
KEY_LanguageTeam |
static String |
KEY_LastTranslator |
static String |
KEY_MimeVersion |
static String |
KEY_PoRevisionDate |
static String |
KEY_PotCreationDate |
static String |
KEY_ProjectIdVersion |
static String |
KEY_ReportMsgidBugsTo |
Constructor and Description |
---|
HeaderFields() |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getDefaultKeys() |
Set<String> |
getKeys() |
String |
getValue(String key) |
void |
remove(String key) |
void |
setValue(String key,
String value) |
Message |
unwrap() |
void |
unwrap(Message message) |
void |
updatePORevisionDate() |
void |
updatePOTCreationDate() |
static HeaderFields |
wrap(Message message) |
static HeaderFields |
wrap(String msgstr)
Extracts key:value headers into a
HeaderFields . |
public static final String KEY_ProjectIdVersion
public static final String KEY_ReportMsgidBugsTo
public static final String KEY_PotCreationDate
public static final String KEY_PoRevisionDate
public static final String KEY_LastTranslator
public static final String KEY_LanguageTeam
public static final String KEY_MimeVersion
public static final String KEY_ContentType
public static final String KEY_ContentTransferEncoding
public static final String KEY_Language
public void remove(String key)
public static HeaderFields wrap(Message message) throws ParseException
ParseException
public static HeaderFields wrap(String msgstr) throws ParseException
Extracts key:value headers into a HeaderFields
.
The expected format is zero or more lines each in the form
"[key]:[value]\n"
.
Other format will be ignored with a warning. i.e.
"\n"
"key\n"
msgstr
- string describing one or more headersParseException
public void unwrap(Message message)
public Message unwrap()
public void updatePORevisionDate()
public void updatePOTCreationDate()
Copyright © 2007–2016 JBoss, a division of Red Hat, Inc. All rights reserved.