Class Atom (1.42.0)

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
TypeDescription
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
TypeDescription
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
NameDescription
contentTypeString

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
NameDescription
headersHttpHeaders
valueString