FileDocCategorySizeDatePackage
WWWAuthenticateParser.javaAPI DocphoneME MR2 API (J2ME)2490Wed May 02 18:00:42 BST 2007gov.nist.siplite.parser

WWWAuthenticateParser

public class WWWAuthenticateParser extends ChallengeParser
Parser for WWW authenitcate header.
version
JAIN-SIP-1.1 This code is in the public domain.
version
1.0

Fields Summary
Constructors Summary
protected WWWAuthenticateParser()
Default constructor.

public WWWAuthenticateParser(String wwwAuthenticate)
Constructor with initial WWW AUthenticate header.

param
wwwAuthenticate message to parse

        super(wwwAuthenticate);
    
protected WWWAuthenticateParser(Lexer lexer)
Constructor with initial lexer engine.

param
lexer initial lexer engine

        super(lexer);
    
Methods Summary
public Headerparse()
Parses the String message.

return
Header (WWWAuthenticate object)
throws
ParseException if the message does not respect the spec.

        if (debug) dbg_enter("parse");
        try {
            headerName(TokenTypes.WWW_AUTHENTICATE);
            WWWAuthenticateHeader
                    wwwAuthenticate = new WWWAuthenticateHeader();
            super.parse(wwwAuthenticate);
            return wwwAuthenticate;
        } finally {
            if (debug) dbg_leave("parse");
        }