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

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

public class GetLastModified
extends ResponseProperty


Field Summary
protected  String cachedDate
           
protected  long modified
           
static String TAG_NAME
           
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.response.properties.ResponseProperty
status
 
Constructor Summary
GetLastModified(long modified)
          Constructor
GetLastModified(Status status)
          Constructor
 
Method Summary
 String asString()
          Returns last modified as a formatted string.
 long getLastModified()
          Returns last modified 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

TAG_NAME

public static final String TAG_NAME
See Also:
Constant Field Values

modified

protected long modified

cachedDate

protected String cachedDate
Constructor Detail

GetLastModified

public GetLastModified(Status status)
Constructor

Parameters:
status - status

GetLastModified

public GetLastModified(long modified)
Constructor

Parameters:
modified - modified timestamp
Method Detail

getLastModified

public long getLastModified()
Returns last modified timestamp

Returns:
last modified timestamp

asString

public String asString()
Returns last modified as a formatted string. Format used is HTTPServerConnectionHandler.DATE_FORMAT

Returns:
last modified as a formatted string

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.