NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip.parser
Class HeaderParser

java.lang.Object
  |
  +--gov.nist.core.ParserCore
        |
        +--gov.nist.javax.sip.parser.Parser
              |
              +--gov.nist.javax.sip.parser.HeaderParser
All Implemented Interfaces:
TokenTypes
Direct Known Subclasses:
AcceptEncodingParser, AcceptLanguageParser, AllowEventsParser, AllowParser, CallIDParser, ChallengeParser, ContentEncodingParser, ContentLanguageParser, ContentLengthParser, CSeqParser, DateParser, ExpiresParser, InReplyToParser, MaxForwardsParser, MimeVersionParser, MinExpiresParser, OrganizationParser, ParametersParser, PriorityParser, ProxyRequireParser, RAckParser, RequireParser, RetryAfterParser, RSeqParser, ServerParser, SubjectParser, SubscriptionStateParser, SupportedParser, TimeStampParser, UnsupportedParser, UserAgentParser, ViaParser, WarningParser

public class HeaderParser
extends Parser

Generic header parser class. The parsers for various headers extend this class. To create a parser for a new header, extend this class and change the createParser class.

Version:
JAIN-SIP-1.1
Author:
M. Ranganathan
This code is in the public domain.

Field Summary
 
Fields inherited from class gov.nist.core.ParserCore
debug
 
Fields inherited from interface gov.nist.javax.sip.parser.TokenTypes
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACK, ALERT_INFO, ALLOW, ALLOW_EVENTS, ALPHA, AND, AT, AUTHENTICATION_INFO, AUTHORIZATION, BACK_QUOTE, BACKSLASH, BAR, BYE, CALL_ID, CALL_INFO, CANCEL, COLON, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, DIGIT, DOLLAR, DOT, DOUBLEQUOTE, ENCRYPTION, END, EQUALS, ERROR_INFO, EVENT, EXCLAMATION, EXPIRES, FROM, GREATER_THAN, HAT, HIDE, HT, ID, IN_REPLY_TO, INVITE, L_CURLY, L_SQUARE_BRACKET, LESS_THAN, LPAREN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MINUS, NOTIFY, NULL, OPTIONS, ORGANIZATION, PERCENT, PLUS, POUND, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, QUESTION, QUOTE, R_CURLY, R_SQUARE_BRACKET, RACK, REASON, RECORD_ROUTE, REGISTER, REPLY_TO, REQUIRE, RESPONSE_KEY, RETRY_AFTER, ROUTE, RPAREN, RSEQ, SEMICOLON, SERVER, SIP, SLASH, SP, STAR, START, SUBJECT, SUBSCRIBE, SUBSCRIPTION_STATE, SUPPORTED, TEL, TILDE, TIMESTAMP, TO, UNDERSCORE, UNSUPPORTED, USER_AGENT, VIA, WARNING, WHITESPACE, WWW_AUTHENTICATE
 
Method Summary
 SIPHeader parse()
          Parse the SIP header from the buffer and return a parsed structure.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public SIPHeader parse()
                throws ParseException
Parse the SIP header from the buffer and return a parsed structure.

Throws:
ParseException - if there was an error parsing.

NIST SIP Parser and Stack (v1.2) API

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Get the latest distribution.
Submit a bug report or feature request.