org.abstracthorizon.danube.webdav.util
Class Timeout

java.lang.Object
  extended by org.abstracthorizon.danube.webdav.util.Timeout

public class Timeout
extends Object

Object that represents a "Timout" header of WebDAV specification.

Author:
Daniel Sendula

Field Summary
static Timeout INFINITE
          Infinite timeout
protected  int seconds
          Number of seconds
 
Constructor Summary
Timeout(int timeout)
          Constructor
 
Method Summary
 String asString()
          Retunrs this object's representation as required by the header
 long calculateValidity()
           
static Timeout parse(String s)
           
 String toString()
          Returns string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFINITE

public static final Timeout INFINITE
Infinite timeout


seconds

protected int seconds
Number of seconds

Constructor Detail

Timeout

public Timeout(int timeout)
Constructor

Parameters:
timeout - timeout in seconds
Method Detail

asString

public String asString()
Retunrs this object's representation as required by the header

Returns:
this object's representation as required by the header

toString

public String toString()
Returns string representation of the object

Overrides:
toString in class Object
Returns:
string representation of the object

calculateValidity

public long calculateValidity()

parse

public static Timeout parse(String s)


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