org.w3c.www.http
Class HttpParamList

java.lang.Object
  extended by org.w3c.www.http.BasicValue
      extended by org.w3c.www.http.HttpParamList
All Implemented Interfaces:
java.lang.Cloneable, HeaderValue

public class HttpParamList
extends BasicValue

This class parses name->value pairs, used in Authentication Info


Field Summary
 
Fields inherited from class org.w3c.www.http.BasicValue
isValid, raw, rlen, roff
 
Constructor Summary
HttpParamList()
           
HttpParamList(boolean isValid)
           
 
Method Summary
 java.lang.String getParameter(java.lang.String name)
          Get a parameter.
 java.lang.Object getValue()
          HeaderValue implemenntation - Get this header value.
protected  void parse()
          parse.
 void setParameter(java.lang.String name, java.lang.String value)
          Set an authentication parameter.
protected  void updateByteValue()
          Update the RFC822 compatible header value for this object.
 
Methods inherited from class org.w3c.www.http.BasicValue
addBytes, appendValue, checkByteValue, clone, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpParamList

public HttpParamList(boolean isValid)

HttpParamList

public HttpParamList()
Method Detail

parse

protected void parse()
              throws HttpParserException
parse.

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

updateByteValue

protected void updateByteValue()
Description copied from class: BasicValue
Update the RFC822 compatible header value for this object.

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.

getParameter

public java.lang.String getParameter(java.lang.String name)
Get a parameter.

Parameters:
name - The name of the parameter to fetch.
Returns:
The String value, or null if undefined.

setParameter

public void setParameter(java.lang.String name,
                         java.lang.String value)
Set an authentication parameter.

Parameters:
name - The name of the authentication parameter.
value - The value of the authentication parameter.