    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.www.http.HttpContentRange

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

public class HttpContentRange
extends BasicValue

##

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

##

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

##

HttpContentRange

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

##

parse

     protected void parse() throws HttpParserException

  parse.

  Throws: HttpParserException
    if parsing failed.
  Overrides:
    parse 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 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.

setFirstPosition

     public void setFirstPosition(int firstpos)

  Set this range first position.

  Parameters:
    firstpos - The firt position of the range.

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.

setLastPosition

     public void setLastPosition(int lastpos)

  Set this range last position.

  Parameters:
    The - last position, as an integer.

getFullLength

     public int getFullLength()

  Get this range entity full length.

  Returns:
    The full length of the entity.

setFullLength

     public void setFullLength(int length)

  Set this range entity full length.

  Parameters:
    length - The new full length for the entity.

getUnit

     public String getUnit()

  Get this content range's unit.

  Returns:
    A String giving the unit for the range, or null if undefined.

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