org.w3c.www.http
Class HttpEntityTag

java.lang.Object
  extended by org.w3c.www.http.BasicValue
      extended by org.w3c.www.http.HttpEntityTag
All Implemented Interfaces:
java.lang.Cloneable, HeaderValue
Direct Known Subclasses:
DAVEntityTag

public class HttpEntityTag
extends BasicValue


Field Summary
 
Fields inherited from class org.w3c.www.http.BasicValue
isValid, raw, rlen, roff
 
Constructor Summary
HttpEntityTag()
           
 
Method Summary
 java.lang.String getTag()
          Get this tag value.
 java.lang.Object getValue()
          HeaderValue implemenntation - Get this header value.
protected  void invalidateByteValue()
          Invalidate the current byte value for this header, if any.
 boolean isWeak()
          Is this a weak entity tag ?
protected  void parse()
          parse the byte value as an entity tag.
 void setTag(java.lang.String tag)
          Set this tag value.
 void setWeak(boolean onoff)
          Set this tag weakness.
protected  void updateByteValue()
          Update the byte value to reflect any changes in the parsed value.
 
Methods inherited from class org.w3c.www.http.BasicValue
addBytes, appendValue, checkByteValue, clone, emit, error, setBytes, setString, toExternalForm, toString, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpEntityTag

public HttpEntityTag()
Method Detail

parse

protected void parse()
              throws HttpParserException
parse the byte value as an entity tag.

Specified by:
parse in class BasicValue
Throws:
HttpParserException - if parsing failed.

invalidateByteValue

protected void invalidateByteValue()
Description copied from class: BasicValue
Invalidate the current byte value for this header, if any.

Overrides:
invalidateByteValue in class BasicValue

updateByteValue

protected void updateByteValue()
Update the byte value to reflect any changes in the parsed value.

Specified by:
updateByteValue in class BasicValue

getValue

public java.lang.Object getValue()
Description copied from class: BasicValue
HeaderValue implemenntation - Get this header value.

Specified by:
getValue in interface HeaderValue
Specified by:
getValue in class BasicValue
Returns:
An object representing the parsed value for this header.

isWeak

public boolean isWeak()
Is this a weak entity tag ?

Returns:
A boolean true if the tag is weak.

setWeak

public void setWeak(boolean onoff)
Set this tag weakness.

Parameters:
onoff - A boolean, tag is weak if true.

getTag

public java.lang.String getTag()
Get this tag value.

Returns:
A String giving the entity tag value.

setTag

public void setTag(java.lang.String tag)
Set this tag value.

Parameters:
tag - The new tag value.