Class Atom
java.lang.Object
com.google.api.client.xml.atom.Atom
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckContentType(String contentType) Checks the given content type matches the Atom content type specified inMEDIA_TYPE.static voidsetSlugHeader(HttpHeaders headers, String value) Sets the"Slug"header, properly escaping the header value.
-
Field Details
-
ATOM_NAMESPACE
-
MEDIA_TYPE
"application/atom+xml; charset=utf-8"media type used as a default for Atom parsing.Use
HttpMediaType.equalsIgnoreParameters(HttpMediaType)for comparing media types.- Since:
- 1.10
-
-
Method Details
-
checkContentType
Checks the given content type matches the Atom content type specified inMEDIA_TYPE.- Throws:
IllegalArgumentException- if content type doesn't match
-
setSlugHeader
Sets the"Slug"header, properly escaping the header value. See The Slug Header.- Since:
- 1.14
-