org.opencms.webdav
Class CmsWebdavRange

java.lang.Object
  extended by org.opencms.webdav.CmsWebdavRange

public class CmsWebdavRange
extends java.lang.Object

Helper class for the WebDAV servlet. Holds values for a range.

Since:
6.5.6
Version:
$Revision: 1.8 $
Author:
Craig R. McClanahan, Peter Bonrad

Constructor Summary
CmsWebdavRange()
           
 
Method Summary
 long getEnd()
          Returns the end.
 long getLength()
          Returns the length.
 long getStart()
          Returns the start.
 void recycle()
          Resets this range.
 void setEnd(long end)
          Sets the end.
 void setLength(long length)
          Sets the length.
 void setStart(long start)
          Sets the start.
 boolean validate()
          Validate range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsWebdavRange

public CmsWebdavRange()
Method Detail

getEnd

public long getEnd()
Returns the end.

Returns:
the end

getLength

public long getLength()
Returns the length.

Returns:
the length

getStart

public long getStart()
Returns the start.

Returns:
the start

recycle

public void recycle()
Resets this range.


setEnd

public void setEnd(long end)
Sets the end.

Parameters:
end - the end to set

setLength

public void setLength(long length)
Sets the length.

Parameters:
length - the length to set

setStart

public void setStart(long start)
Sets the start.

Parameters:
start - the start to set

validate

public boolean validate()
Validate range.

Returns:
true if the actual range is valid otherwise false