Package com.google.api.client.xml.atom
Class Atom
- java.lang.Object
-
- com.google.api.client.xml.atom.Atom
-
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkContentType(String contentType)
Checks the given content type matches the Atom content type specified inMEDIA_TYPE
.static void
setSlugHeader(HttpHeaders headers, String value)
Sets the"Slug"
header, properly escaping the header value.
-
-
-
Field Detail
-
ATOM_NAMESPACE
public static final String ATOM_NAMESPACE
Atom namespace.- See Also:
- Constant Field Values
-
MEDIA_TYPE
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.- Since:
- 1.10
-
-
Method Detail
-
checkContentType
public static void checkContentType(String contentType)
Checks the given content type matches the Atom content type specified inMEDIA_TYPE
.- Throws:
IllegalArgumentException
- if content type doesn't match
-
setSlugHeader
public static void setSlugHeader(HttpHeaders headers, String value)
Sets the"Slug"
header, properly escaping the header value. See The Slug Header.- Since:
- 1.14
-
-