Package com.google.api.client.xml.atom
Class Atom
java.lang.Object
com.google.api.client.xml.atom.Atom
Beta
Atom Utilities.
- Since:
- 1.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Atom namespace.static final String
"application/atom+xml; charset=utf-8"
media type used as a default for Atom parsing.private static final PercentEscaper
Escaper for theSlug
header. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
ATOM_NAMESPACE
Atom namespace.- See Also:
-
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
-
SLUG_ESCAPER
Escaper for theSlug
header.
-
-
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
-