All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.http.HttpRange

java.lang.Object
   |
   +----w3c.www.http.BasicValue
           |
           +----w3c.www.http.HttpRange

public class HttpRange
extends BasicValue

Variable Index

 o firstpos
First position in the range.
 o lastpos
Last position in the range.
 o list
The list we belong to, if any.
 o unit
The range's unit.

Constructor Index

 o HttpRange()

Method Index

 o getFirstPosition()
Get the first position of the range.
 o getLastPosition()
Get the last position for this range.
 o getUnit()
Get the unit in which this range is taken.
 o getValue()
HeaderValue implemenntation - Get this header value.
 o invalidateByteValue()
Invalidate the current byte value for this header, if any.
 o parse()
Parse this header value into its various components.
 o setFirstPosition(int)
Set the first position of the range.
 o setLastPosition(int)
Set the last position for this range.
 o setUnit(String)
Set the unit in which this range is taken.
 o updateByteValue()
Update the RFC822 compatible header value for this object.

Variables

 o firstpos
 protected int firstpos
First position in the range.

 o lastpos
 protected int lastpos
Last position in the range.

 o unit
 protected String unit
The range's unit.

 o list
 protected HttpRangeList list
The list we belong to, if any.

Constructors

 o HttpRange
 public HttpRange()

Methods

 o parse
 protected void parse() throws HttpParserException
Parse this header value into its various components.

Overrides:
parse in class BasicValue
 o invalidateByteValue
 protected void invalidateByteValue()
Invalidate the current byte value for this header, if any.

Overrides:
invalidateByteValue in class BasicValue
 o updateByteValue
 protected void updateByteValue()
Update the RFC822 compatible header value for this object.

Overrides:
updateByteValue in class BasicValue
 o getValue
 public Object getValue()
HeaderValue implemenntation - Get this header value.

Overrides:
getValue in class BasicValue
 o getFirstPosition
 public int getFirstPosition()
Get the first position of the range.

Returns:
An integer giving the first pos for the range, or -1 if undefined.
 o setFirstPosition
 public void setFirstPosition(int firstpos)
Set the first position of the range.

Parameters:
firstpos - The first positon for the range.
 o getLastPosition
 public int getLastPosition()
Get the last position for this range. If the first position is negative, then the last position is to be considered as the number of bytes relative to the end of the content.

Returns:
An integer giving the last position.
 o setLastPosition
 public void setLastPosition(int lastpos)
Set the last position for this range. If the given number is negative, it is considered to be a number of bytes relative to the end of the content (eg the last N bytes).

Parameters:
lastpos - The new last position.
 o setUnit
 public void setUnit(String unit)
Set the unit in which this range is taken.

 o getUnit
 public String getUnit()
Get the unit in which this range is taken.

Returns:
The unit in which this range is measured, or null if undefined.

All Packages  Class Hierarchy  This Package  Previous  Next  Index