public final class Header
extends java.lang.Object
A header element which hold stanza header information or internet metadata.
This class is immutable.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Gets the name of the header.
|
java.lang.String |
getValue()
Gets the value of the header.
|
static Header |
of(java.lang.String name,
java.lang.String value)
Creates a header.
|
static Header |
ofStartDate(java.time.OffsetDateTime dateTime)
Creates a header with a start date.
|
static Header |
ofStopDate(java.time.OffsetDateTime dateTime)
Creates a header with a stop date.
|
java.lang.String |
toString() |
public static Header of(java.lang.String name, java.lang.String value)
Creates a header.
name - The name of the header. See 9.3 SHIM Headers Registry for registered headers.value - The header value.public static Header ofStartDate(java.time.OffsetDateTime dateTime)
Creates a header with a start date.
dateTime - The start date.public static Header ofStopDate(java.time.OffsetDateTime dateTime)
Creates a header with a stop date.
dateTime - The stop date.public final java.lang.String getName()
Gets the name of the header.
public final java.lang.String getValue()
Gets the value of the header.
public final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.