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

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
      extended by org.abstracthorizon.danube.webdav.xml.dav.request.properties.RequestProperty
          extended by org.abstracthorizon.danube.webdav.xml.dav.request.properties.GetLastModified
All Implemented Interfaces:
XMLParserHandler
Direct Known Subclasses:
GetLastModified, GetLastModified

public class GetLastModified
extends RequestProperty

This class models WebDAV's getlastmodified request property tag

Author:
Daniel Sendula

Field Summary
protected  long lastModified
          Last modified timestamp
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.properties.RequestProperty
CONSTRUCTOR_ARGUMENTS_CLASSES, logger, packageName
 
Fields inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
parent
 
Constructor Summary
GetLastModified(XMLParserHandler parent)
          Constructor
 
Method Summary
 String asString()
          Retunrs timestamp as string using format.
 Object end(Object current, String tag, String value)
          Returns parent object and does nothing else
 long getLastModified()
          This class returns last modified timestamp
 ResponseProperty processResponse(ResourceAdapter adapter, Object resource)
          Returns GetLastModified
 String toString()
           
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.properties.RequestProperty
constructResponse, processRemoveProperty, processSetProperty
 
Methods inherited from class org.abstracthorizon.danube.webdav.xml.dav.request.AbstractSimpleXMLHandler
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lastModified

protected long lastModified
Last modified timestamp

Constructor Detail

GetLastModified

public GetLastModified(XMLParserHandler parent)
Constructor

Parameters:
parent - parent parser handler
Method Detail

end

public Object end(Object current,
                  String tag,
                  String value)
           throws SAXException
Description copied from class: AbstractSimpleXMLHandler
Returns parent object and does nothing else

Specified by:
end in interface XMLParserHandler
Overrides:
end in class AbstractSimpleXMLHandler
Parameters:
current - current object
tag - tag
value - tag value
Returns:
new object
Throws:
SAXException - sax exception

getLastModified

public long getLastModified()
This class returns last modified timestamp

Returns:
last modified timestamp

processResponse

public ResponseProperty processResponse(ResourceAdapter adapter,
                                        Object resource)
Returns GetLastModified

Overrides:
processResponse in class RequestProperty
Parameters:
adapter - adapter
resource - resource
Returns:
GetLastModified

asString

public String asString()
Retunrs timestamp as string using format.

Returns:
timestamp as string

toString

public String toString()
Overrides:
toString in class Object


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