public final class Atom extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATOM_NAMESPACE
Atom namespace.
|
static String |
MEDIA_TYPE
"application/atom+xml; charset=utf-8" media type used as a default for Atom parsing. |
Modifier and Type | Method and Description |
---|---|
static void |
checkContentType(String contentType)
Checks the given content type matches the Atom content type specified in
MEDIA_TYPE . |
public static final String ATOM_NAMESPACE
public static final String MEDIA_TYPE
"application/atom+xml; charset=utf-8"
media type used as a default for Atom parsing.
Use HttpMediaType.equalsIgnoreParameters(com.google.api.client.http.HttpMediaType)
for comparing media types.
public static void checkContentType(String contentType)
MEDIA_TYPE
.IllegalArgumentException
- if content type doesn't matchCopyright © 2011-2012 Google. All Rights Reserved.