Package com.google.api.client.xml.atom
Class Atom
- java.lang.Object
-
- com.google.api.client.xml.atom.Atom
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAtom.StopAtAtomEntry
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATOM_NAMESPACEAtom namespace.static java.lang.StringMEDIA_TYPE"application/atom+xml; charset=utf-8"media type used as a default for Atom parsing.private static PercentEscaperSLUG_ESCAPEREscaper for theSlugheader.
-
Constructor Summary
Constructors Modifier Constructor Description privateAtom()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckContentType(java.lang.String contentType)Checks the given content type matches the Atom content type specified inMEDIA_TYPE.static voidsetSlugHeader(HttpHeaders headers, java.lang.String value)Sets the"Slug"header, properly escaping the header value.
-
-
-
Field Detail
-
ATOM_NAMESPACE
public static final java.lang.String ATOM_NAMESPACE
Atom namespace.- See Also:
- Constant Field Values
-
MEDIA_TYPE
public static final java.lang.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
-
SLUG_ESCAPER
private static final PercentEscaper SLUG_ESCAPER
Escaper for theSlugheader.
-
-
Method Detail
-
checkContentType
public static void checkContentType(java.lang.String contentType)
Checks the given content type matches the Atom content type specified inMEDIA_TYPE.- Throws:
java.lang.IllegalArgumentException- if content type doesn't match
-
setSlugHeader
public static void setSlugHeader(HttpHeaders headers, java.lang.String value)
Sets the"Slug"header, properly escaping the header value. See The Slug Header.- Since:
- 1.14
-
-