All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.http.HttpContentRange

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

public class HttpContentRange
extends BasicValue

Constructor Index

 o HttpContentRange(boolean, String, int, int, int)

Method Index

 o getFirstPosition()
Get this range first position.
 o getFullLength()
Get this range entity full length.
 o getLastPosition()
Get this range last position.
 o getUnit()
Get this content range's unit.
 o getValue()
HeaderValue implemenntation - Get this header value.
 o parse()
Parse this header value into its various components.
 o setFirstPosition(int)
Set this range first position.
 o setFullLength(int)
Set this range entity full length.
 o setLastPosition(int)
Set this range last position.
 o setUnit(String)
Set this content range's unit.
 o updateByteValue()
Update the RFC822 compatible header value for this object.

Constructors

 o HttpContentRange
 public HttpContentRange(boolean isValid,
                         String unit,
                         int firstpos,
                         int lastpos,
                         int length)

Methods

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

Overrides:
parse 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 this range first position. The meaning of the returne integer is to be understood relative to the unit, as obtained by getUnit method.

Returns:
An integer value for thr first position.
 o setFirstPosition
 public void setFirstPosition(int firstpos)
Set this range first position.

Parameters:
firstpos - The firt position of the range.
 o getLastPosition
 public int getLastPosition()
Get this range last position. The meaning of the returne integer is to be understood relative to the unit, as obtained by getUnit method.

Returns:
An integer value giving the last position.
 o setLastPosition
 public void setLastPosition(int lastpos)
Set this range last position.

Parameters:
The - last position, as an integer.
 o getFullLength
 public int getFullLength()
Get this range entity full length.

Returns:
The full length of the entity.
 o setFullLength
 public void setFullLength(int length)
Set this range entity full length.

Parameters:
length - The new full length for the entity.
 o getUnit
 public String getUnit()
Get this content range's unit.

Returns:
A String giving the unit for the range, or null if undefined.
 o setUnit
 public void setUnit(String unit)
Set this content range's unit.

Parameters:
unit - The unit in which this range was measured.

All Packages  Class Hierarchy  This Package  Previous  Next  Index