public class CmsJsonPart extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
END
The terminator used for JSON parts.
|
Constructor and Description |
---|
CmsJsonPart(java.lang.String key,
java.lang.String value)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getHeader(java.lang.String key)
Gets the header section for a named JSON part.
|
java.lang.String |
getKey()
Returns the key.
|
java.lang.String |
getValue()
Returns the value.
|
static java.util.List<CmsJsonPart> |
parseJsonParts(java.lang.String text)
Parses the encoded JSON parts from the given string and puts them in a list.
|
public static final java.lang.String END
public CmsJsonPart(java.lang.String key, java.lang.String value)
key
- the keyvalue
- the valuepublic static final java.lang.String getHeader(java.lang.String key)
key
- the JSON key for the partpublic static java.util.List<CmsJsonPart> parseJsonParts(java.lang.String text)
text
- the text containing the encoded JSON partspublic java.lang.String getKey()
public java.lang.String getValue()