    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

##

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

##

HttpRange()

##

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

##

firstpos

     protected int firstpos

  First position in the range.

lastpos

     protected int lastpos

  Last position in the range.

unit

     protected String unit

  The range's unit.

list

     protected HttpRangeList list

  The list we belong to, if any.

##

HttpRange

     public HttpRange()

##

parse

     protected void parse() throws HttpParserException

  Parse this header value into its various components.

  Overrides:
    parse in class BasicValue

invalidateByteValue

     protected void invalidateByteValue()

  Invalidate the current byte value for this header, if any.

  Overrides:
    invalidateByteValue in class BasicValue

updateByteValue

     protected void updateByteValue()

  Update the RFC822 compatible header value for this object.

  Overrides:
    updateByteValue in class BasicValue

getValue

     public Object getValue()

  HeaderValue implemenntation - Get this header value.

  Overrides:
    getValue in class BasicValue

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.

setFirstPosition

     public void setFirstPosition(int firstpos)

  Set the first position of the range.

  Parameters:
    firstpos - The first positon for the range.

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.

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.

setUnit

     public void setUnit(String unit)

  Set the unit in which this range is taken.

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