org.abstracthorizon.danube.webdav.xml.dav.response.properties
Class CreationDate

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
      extended by org.abstracthorizon.danube.webdav.xml.dav.response.properties.CreationDate
All Implemented Interfaces:
XMLRenderer

public class CreationDate
extends ResponseProperty

This class models WebDAV's creationdate response tag.

Author:
Daniel Sendula

Field Summary
protected  String cachedDate
          Cached formatted date
static SimpleDateFormat DATE_FORMAT
          Date format or "yyy-MM-dd'T'HH:mm:ssZ""
protected  String dateString
          Date string
protected  long modified
          Modified timestamp
static String TAG_NAME
          Tag name
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
status
 
Constructor Summary
CreationDate(long modified)
          Constructor
CreationDate(Status status)
          Constructor
 
Method Summary
 String asString()
          Returns formatted timestamp
 long getLastModified()
          Returns timestamp
 void render(PrintWriter writer, NamespacesProvider provider)
          Renders the tag
 String toString()
           
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final SimpleDateFormat DATE_FORMAT
Date format or "yyy-MM-dd'T'HH:mm:ssZ""


modified

protected long modified
Modified timestamp


cachedDate

protected String cachedDate
Cached formatted date


TAG_NAME

public static final String TAG_NAME
Tag name

See Also:
Constant Field Values

dateString

protected String dateString
Date string

Constructor Detail

CreationDate

public CreationDate(Status status)
Constructor

Parameters:
status - status

CreationDate

public CreationDate(long modified)
Constructor

Parameters:
modified - timestamp
Method Detail

getLastModified

public long getLastModified()
Returns timestamp

Returns:
timestamp

asString

public String asString()
Returns formatted timestamp

Returns:
formatted timestamp

toString

public String toString()
Overrides:
toString in class Object

render

public void render(PrintWriter writer,
                   NamespacesProvider provider)
Renders the tag

Parameters:
writer - writer
provider - namespace provider


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.