public class DateMessage extends XMLMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATE_MESSAGE_DOCNAME
The name of the root element.
|
static java.lang.String |
DATE_MESSAGE_DTD
The underlying DTD.
|
Constructor and Description |
---|
DateMessage()
Constructs an instance based on a given DTD.
|
DateMessage(java.lang.String version,
java.lang.String pattern,
java.lang.String locale)
Constructs a message instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Provides the server date embedded in date message.
|
canProcess, getAttribute, getAttributeValue, getContents, getDocument, getDTD, getElement, getElements, getElementValue, getEncoding, getIntFunctionResult, isArmed, isValid, printDocument, read, read, setEncoding, setFormat, write, write
public static final java.lang.String DATE_MESSAGE_DTD
public static final java.lang.String DATE_MESSAGE_DOCNAME
public DateMessage()
public DateMessage(java.lang.String version, java.lang.String pattern, java.lang.String locale)
version
- Currently only "1.0", requiredpattern
- Format of the datelocale
- Locale of the date patternCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.