| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATOM_NAMESPACE
Atom namespace.
|
static java.lang.String |
MEDIA_TYPE
"application/atom+xml; charset=utf-8" media type used as a default for Atom parsing. |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkContentType(java.lang.String contentType)
Checks the given content type matches the Atom content type specified in
MEDIA_TYPE. |
static void |
setSlugHeader(HttpHeaders headers,
java.lang.String value)
Sets the
"Slug" header, properly escaping the header value. |
public static final java.lang.String ATOM_NAMESPACE
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.
public static void checkContentType(java.lang.String contentType)
MEDIA_TYPE.java.lang.IllegalArgumentException - if content type doesn't matchpublic static void setSlugHeader(HttpHeaders headers, java.lang.String value)
"Slug" header, properly escaping the header value. See The Slug Header.Copyright © 2011-2018 Google. All Rights Reserved.