public final class Header extends Object
This class is immutable.
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the header.
|
String |
getValue()
Gets the value of the header.
|
static Header |
of(String name,
String value)
Creates a header.
|
static Header |
ofStartDate(OffsetDateTime dateTime)
Creates a header with a start date.
|
static Header |
ofStopDate(OffsetDateTime dateTime)
Creates a header with a stop date.
|
String |
toString() |
public static Header of(String name, String value)
name - The name of the header. See 9.3 SHIM Headers Registry for registered headers.value - The header value.public static Header ofStartDate(OffsetDateTime dateTime)
dateTime - The start date.public static Header ofStopDate(OffsetDateTime dateTime)
dateTime - The stop date.public final String getName()
public final String getValue()
Copyright © 2014–2018 XMPP.rocks. All rights reserved.