# Class Atom (2.1.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.1.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.xml.atom.Atom)
- [2.0.3](https://docs.cloud.google.com/java/docs/reference/google-http-client/2.0.3/com.google.api.client.xml.atom.Atom)
- [1.47.1](https://docs.cloud.google.com/java/docs/reference/google-http-client/1.47.1/com.google.api.client.xml.atom.Atom)
- [1.46.3](https://docs.cloud.google.com/java/docs/reference/google-http-client/1.46.3/com.google.api.client.xml.atom.Atom)
- [1.45.3](https://docs.cloud.google.com/java/docs/reference/google-http-client/1.45.3/com.google.api.client.xml.atom.Atom)
- [1.44.2](https://docs.cloud.google.com/java/docs/reference/google-http-client/1.44.2/com.google.api.client.xml.atom.Atom)
- [1.43.2](https://docs.cloud.google.com/java/docs/reference/google-http-client/1.43.2/com.google.api.client.xml.atom.Atom)
- [1.42.3](https://docs.cloud.google.com/java/docs/reference/google-http-client/1.42.3/com.google.api.client.xml.atom.Atom)
- [1.41.8](https://docs.cloud.google.com/java/docs/reference/google-http-client/1.41.8/com.google.api.client.xml.atom.Atom)

    public final class Atom

[Beta](https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.util.Beta)   

Atom Utilities.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> Atom

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Fields

### ATOM_NAMESPACE

    public static final String ATOM_NAMESPACE

Atom namespace.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### 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](https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.http.HttpMediaType#com_google_api_client_http_HttpMediaType_equalsIgnoreParameters_) for comparing media types.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

## 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](https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.xml.atom.Atom#com_google_api_client_xml_atom_Atom_MEDIA_TYPE).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `contentType` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

### 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](http://tools.ietf.org/html/rfc5023#section-9.7).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `headers` | `https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.http.HttpHeaders` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |