Class Atom (1.44.2)

public final class Atom

Beta
Atom Utilities.

Inheritance

java.lang.Object > Atom

Static Fields

ATOM_NAMESPACE

public static final String ATOM_NAMESPACE

Atom namespace.

Field Value
Type Description
String

MEDIA_TYPE

public static final String MEDIA_TYPE

"application/atom+xml; charset=utf-8" media type used as a default for Atom parsing.

Use HttpMediaType#equalsIgnoreParameters for comparing media types.

Field Value
Type Description
String

Static Methods

checkContentType(String contentType)

public static void checkContentType(String contentType)

Checks the given content type matches the Atom content type specified in #MEDIA_TYPE.

Parameter
Name Description
contentType String

setSlugHeader(HttpHeaders headers, String value)

public static void setSlugHeader(HttpHeaders headers, String value)

Sets the "Slug" header, properly escaping the header value. See The Slug Header.

Parameters
Name Description
headers HttpHeaders
value String