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

AcceptContactParser

public class AcceptContactParser extends ParametersParser
Parser for content type header.

Fields Summary
Constructors Summary
AcceptContactParser()
Default constructor.

protected AcceptContactParser(Lexer lexer)
Constructor with initial lexer engine.

param
lexer initial lexer engine

        super(lexer);
    
Methods Summary
public Headerparse()
Invokes parser for content type header field.

return
the parsed content type header
exception
ParseException if a parsing error occurs

        
        AcceptContactHeader acceptContact = new AcceptContactHeader();
        
        this.headerName(TokenTypes.ACCEPT_CONTACT);
        
        // first symbol must be star (RFC 3841)
        lexer.match(TokenTypes.STAR);
        this.lexer.SPorHT();
        super.parse(acceptContact);
        this.lexer.match('\n");
        return acceptContact;