Class Atom
java.lang.Object
com.google.api.client.xml.atom.Atom
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAtom namespace.static final String"application/atom+xml; charset=utf-8"media type used as a default for Atom parsing.private static final PercentEscaperEscaper for theSlugheader. -
Constructor Summary
Constructors -
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
-
SLUG_ESCAPER
Escaper for theSlugheader.
-
-
Constructor Details
-
Atom
private Atom()
-
-
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
-