org.w3c.www.http
Class HttpChallenge

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

public class HttpChallenge
extends BasicValue


Fields inherited from class org.w3c.www.http.BasicValue
isValid, raw, rlen, roff
 
Constructor Summary
HttpChallenge()
           
 
Method Summary
 java.lang.String getAuthParameter(java.lang.String name)
          Get an authentication parameter.
 HttpChallenge getClone()
          get a copy of the challenge, used to add some output value without hurting the challenge
 java.lang.String getScheme()
          Get the challenge scheme.
 java.lang.Object getValue()
          HeaderValue implemenntation - Get this header value.
protected  void parse()
          parse.
 void setAuthParameter(java.lang.String name, java.lang.String value)
          Set an auth parameter value.
protected  void updateByteValue()
          Update the RFC822 compatible header value for this object.
 
Methods inherited from class org.w3c.www.http.BasicValue
addBytes, appendValue, checkByteValue, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpChallenge

public HttpChallenge()
Method Detail

getClone

public HttpChallenge getClone()
get a copy of the challenge, used to add some output value without hurting the challenge
Returns:
the clone of this challenge

parse

protected void parse()
              throws HttpParserException
parse.
Overrides:
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.
Overrides:
updateByteValue in class BasicValue

getValue

public java.lang.Object getValue()
Description copied from class: BasicValue
HeaderValue implemenntation - Get this header value.
Overrides:
getValue in class BasicValue
Tags copied from class: BasicValue
Returns:
An object representing the parsed value for this header.

getScheme

public java.lang.String getScheme()
Get the challenge scheme.
Returns:
A String encoding the challenge scheme identifier.

getAuthParameter

public java.lang.String getAuthParameter(java.lang.String name)
Get an authentication parameter.
Parameters:
name - The name of the parameter.
Returns:
A String encoded value for this parameter, or null

setAuthParameter

public void setAuthParameter(java.lang.String name,
                             java.lang.String value)
Set an auth parameter value.
Parameters:
name - The name of the parameter to set.
value - The new value for this parameter.