Documentation
¶
Index ¶
- Constants
- type AcceptEncodingParser
- type AcceptLanguageParser
- type AcceptParser
- type AddressParametersParser
- type AddressParser
- type AlertInfoParser
- type AllowEventsParser
- type AllowParser
- type AuthenticationInfoParser
- type AuthorizationParser
- type CSeqParser
- type CallIDParser
- type CallInfoParser
- type ChallengeParser
- type ContactParser
- type ContentDispositionParser
- type ContentEncodingParser
- type ContentLanguageParser
- type ContentLengthParser
- type ContentTypeParser
- type DateParser
- type ErrorInfoParser
- type EventParser
- type ExpiresParser
- type FromParser
- type HeaderParser
- type InReplyToParser
- type MaxForwardsParser
- type MimeVersionParser
- type MinExpiresParser
- type OrganizationParser
- type ParametersParser
- type Parser
- type PriorityParser
- type ProxyAuthenticateParser
- type ProxyAuthorizationParser
- type ProxyRequireParser
- type RAckParser
- type RSeqParser
- type ReasonParser
- type RecordRouteParser
- type ReferToParser
- type ReplyToParser
- type RequestLineParser
- type RequireParser
- type RetryAfterParser
- type RouteParser
- type SIPLexer
- type SIPParser
- type ServerParser
- type StatusLineParser
- type SubjectParser
- type SubscriptionStateParser
- type SupportedParser
- type TimeStampParser
- type ToParser
- type URLParser
- func (this *URLParser) Base_phone_number() (s string, ParseException error)
- func (this *URLParser) Escaped() (s string, ParseException error)
- func (this *URLParser) Global_phone_number() (tn *address.TelephoneNumber, ParseException error)
- func (this *URLParser) Hvalue() (s string, ParseException error)
- func (this *URLParser) IsEscaped() bool
- func (this *URLParser) IsMark(next byte) bool
- func (this *URLParser) IsReserved(next byte) bool
- func (this *URLParser) IsReservedNoSlash(next byte) bool
- func (this *URLParser) IsUnreserved(next byte) bool
- func (this *URLParser) IsUserUnreserved(la byte) bool
- func (this *URLParser) Local_number() (s string, ParseException error)
- func (this *URLParser) Local_phone_number() (tn *address.TelephoneNumber, ParseException error)
- func (this *URLParser) Mark() (s string, ParseException error)
- func (this *URLParser) ParamNameOrValue() (s string, ParseException error)
- func (this *URLParser) Parse() (url address.URI, ParseException error)
- func (this *URLParser) ParseTelephoneNumber() (tn *address.TelephoneNumber, ParseException error)
- func (this *URLParser) Password() (s string, ParseException error)
- func (this *URLParser) PeekScheme() (s string, ParseException error)
- func (this *URLParser) Qheader() (nv *core.NameValue, ParseException error)
- func (this *URLParser) Reserved() (s string, ParseException error)
- func (this *URLParser) SipURL() (sipurl *address.SipURIImpl, ParseException error)
- func (this *URLParser) TelURL() (telUrl *address.TelURLImpl, ParseException error)
- func (this *URLParser) Tel_parameters() (nvl *core.NameValueList, ParseException error)
- func (this *URLParser) Unreserved() (s string, ParseException error)
- func (this *URLParser) UriParam() (nv *core.NameValue, ParseException error)
- func (this *URLParser) UriReference() (url address.URI, ParseException error)
- func (this *URLParser) Uric() string
- func (this *URLParser) UricNoSlash() string
- func (this *URLParser) UricString() string
- func (this *URLParser) UrlString() (s string, ParseException error)
- func (this *URLParser) User() (s string, ParseException error)
- type UnsupportedParser
- type UserAgentParser
- type ViaParser
- type WWWAuthenticateParser
- type WarningParser
Constants ¶
const TokenTypes_ACCEPT = TokenTypes_START + 20
const TokenTypes_ACCEPT_ENCODING = TokenTypes_START + 19
const TokenTypes_ACCEPT_LANGUAGE = TokenTypes_START + 47
const TokenTypes_ACK = TokenTypes_START + 6
const TokenTypes_ALERT_INFO = TokenTypes_START + 13
const TokenTypes_ALLOW = TokenTypes_START + 21
const TokenTypes_ALLOW_EVENTS = TokenTypes_START + 65
const TokenTypes_ALPHA = core.CORELEXER_ALPHA
const TokenTypes_AND = (int)('&')
const TokenTypes_AT = core.CORELEXER_AT
const TokenTypes_AUTHENTICATION_INFO = TokenTypes_START + 64
const TokenTypes_AUTHORIZATION = TokenTypes_START + 23
const TokenTypes_BACKSLASH = core.CORELEXER_BACKSLASH
const TokenTypes_BACK_QUOTE = core.CORELEXER_BACK_QUOTE
const TokenTypes_BAR = (int)('|')
const TokenTypes_BYE = TokenTypes_START + 7
const TokenTypes_CALL_ID = TokenTypes_START + 40
const TokenTypes_CALL_INFO = TokenTypes_START + 51
const TokenTypes_CANCEL = TokenTypes_START + 9
const TokenTypes_COLON = core.CORELEXER_COLON
const TokenTypes_CONTACT = TokenTypes_START + 39
const TokenTypes_CONTENT_DISPOSITION = TokenTypes_START + 52
const TokenTypes_CONTENT_ENCODING = TokenTypes_START + 35
const TokenTypes_CONTENT_LANGUAGE = TokenTypes_START + 27
const TokenTypes_CONTENT_LENGTH = TokenTypes_START + 36
const TokenTypes_CONTENT_TYPE = TokenTypes_START + 38
const TokenTypes_CSEQ = TokenTypes_START + 46
const TokenTypes_DATE = TokenTypes_START + 32
const TokenTypes_DIGIT = core.CORELEXER_DIGIT
const TokenTypes_DOLLAR = core.CORELEXER_DOLLAR
const TokenTypes_DOT = (int)('.')
const TokenTypes_DOUBLEQUOTE = core.CORELEXER_DOUBLEQUOTE
const TokenTypes_ENCRYPTION = TokenTypes_START + 43
const TokenTypes_END = core.CORELEXER_END
Everything under this is reserved
const TokenTypes_EQUALS = (int)('=')
const TokenTypes_ERROR_INFO = TokenTypes_START + 10
const TokenTypes_EVENT = TokenTypes_START + 63
const TokenTypes_EXCLAMATION = (int)('!')
const TokenTypes_EXPIRES = TokenTypes_START + 42
const TokenTypes_FROM = TokenTypes_START + 14
const TokenTypes_GREATER_THAN = (int)('>')
const TokenTypes_HAT = (int)('^')
const TokenTypes_HIDE = TokenTypes_START + 50
const TokenTypes_HT = core.CORELEXER_HT
const TokenTypes_ID = core.CORELEXER_ID
const TokenTypes_INVITE = TokenTypes_START + 5
const TokenTypes_IN_REPLY_TO = TokenTypes_START + 11
const TokenTypes_LESS_THAN = (int)('<')
const TokenTypes_LPAREN = (int)('(')
const TokenTypes_L_CURLY = (int)('{')
const TokenTypes_L_SQUARE_BRACKET = (int)('[')
const TokenTypes_MAX_FORWARDS = TokenTypes_START + 31
const TokenTypes_MIME_VERSION = TokenTypes_START + 12
const TokenTypes_MINUS = core.CORELEXER_MINUS
const TokenTypes_MIN_EXPIRES = TokenTypes_START + 62
const TokenTypes_NOTIFY = TokenTypes_START + 54
const TokenTypes_NULL = core.CORELEXER_NULL
const TokenTypes_OPTIONS = TokenTypes_START + 8
const TokenTypes_ORGANIZATION = TokenTypes_START + 45
const TokenTypes_PERCENT = (int)('%')
const TokenTypes_PLUS = core.CORELEXER_PLUS
const TokenTypes_POUND = core.CORELEXER_POUND
const TokenTypes_PRIORITY = TokenTypes_START + 33
const TokenTypes_PROXY_AUTHENTICATE = TokenTypes_START + 34
const TokenTypes_PROXY_AUTHORIZATION = TokenTypes_START + 24
const TokenTypes_PROXY_REQUIRE = TokenTypes_START + 26
const TokenTypes_QUESTION = (int)('?')
const TokenTypes_QUOTE = core.CORELEXER_QUOTE
const TokenTypes_RACK = TokenTypes_START + 61
const TokenTypes_REASON = TokenTypes_START + 59
const TokenTypes_RECORD_ROUTE = TokenTypes_START + 44
const TokenTypes_REFER_TO = TokenTypes_START + 66
const TokenTypes_REGISTER = TokenTypes_START + 4
const TokenTypes_REPLY_TO = TokenTypes_START + 58
const TokenTypes_REQUIRE = TokenTypes_START + 41
const TokenTypes_RESPONSE_KEY = TokenTypes_START + 49
const TokenTypes_RETRY_AFTER = TokenTypes_START + 25
const TokenTypes_ROUTE = TokenTypes_START + 22
const TokenTypes_RPAREN = (int)(')')
const TokenTypes_RSEQ = TokenTypes_START + 60
const TokenTypes_R_CURLY = (int)('}')
const TokenTypes_R_SQUARE_BRACKET = (int)(']')
const TokenTypes_SEMICOLON = (int)(';')
const TokenTypes_SERVER = TokenTypes_START + 18
const TokenTypes_SIP = TokenTypes_START + 3
const TokenTypes_SLASH = (int)('/')
const TokenTypes_SP = core.CORELEXER_SP
const TokenTypes_STAR = core.CORELEXER_STAR
const TokenTypes_START = core.CORELEXER_START
const TokenTypes_SUBJECT = TokenTypes_START + 37
const TokenTypes_SUBSCRIBE = TokenTypes_START + 53
const TokenTypes_SUBSCRIPTION_STATE = TokenTypes_START + 56
const TokenTypes_SUPPORTED = TokenTypes_START + 20
const TokenTypes_TEL = TokenTypes_START + 57
const TokenTypes_TILDE = core.CORELEXER_TILDE
const TokenTypes_TIMESTAMP = TokenTypes_START + 55
const TokenTypes_TO = TokenTypes_START + 15
const TokenTypes_UNDERSCORE = (int)('_')
const TokenTypes_UNSUPPORTED = TokenTypes_START + 28
const TokenTypes_USER_AGENT = TokenTypes_START + 17
const TokenTypes_VIA = TokenTypes_START + 16
const TokenTypes_WARNING = TokenTypes_START + 30
const TokenTypes_WHITESPACE = core.CORELEXER_WHITESPACE
const TokenTypes_WWW_AUTHENTICATE = TokenTypes_START + 48
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptEncodingParser ¶
type AcceptEncodingParser struct {
HeaderParser
}
* * Accept-Encoding SIP (HTTP) Header parser. * * <pre> * * The Accept-Encoding request-header field is similar to Accept, but * restricts the content-codings (section 3.5) that are acceptable in * the response. * * * Accept-Encoding = "Accept-Encoding" ":" * ( encoding *( "," encoding) ) * encoding = ( codings *[ ";" "q" "=" qvalue ] ) * codings = ( content-coding | "*" ) * * Examples of its use are: * * Accept-Encoding: compress, gzip * Accept-Encoding: * Accept-Encoding: * * Accept-Encoding: compress;q=0.5, gzip;q=1.0 * Accept-Encoding: gzip;q=1.0, identity; q=0.5, *;q=0 * </pre> *
func NewAcceptEncodingParser ¶
func NewAcceptEncodingParser(acceptEncoding string) *AcceptEncodingParser
* Constructor
- @param String AcceptEncoding message to parse
func NewAcceptEncodingParserFromLexer ¶
func NewAcceptEncodingParserFromLexer(lexer core.Lexer) *AcceptEncodingParser
* Cosntructor
- @param lexer to set
type AcceptLanguageParser ¶
type AcceptLanguageParser struct {
HeaderParser
}
func NewAcceptLanguageParser ¶
func NewAcceptLanguageParser(acceptLanguage string) *AcceptLanguageParser
* Constructor
- @param String AcceptLanguage message to parse
func NewAcceptLanguageParserFromLexer ¶
func NewAcceptLanguageParserFromLexer(lexer core.Lexer) *AcceptLanguageParser
* Cosntructor
- @param lexer to set
type AcceptParser ¶
type AcceptParser struct {
ParametersParser
}
* SIPParser for Accept header.
func NewAcceptParser ¶
func NewAcceptParser(accept string) *AcceptParser
*
- Creates a new instance of Accept SIPParser
- @param accept the header to parse
func NewAcceptParserFromLexer ¶
func NewAcceptParserFromLexer(lexer core.Lexer) *AcceptParser
* Constructor
- @param lexer the lexer to use to parse the header
type AddressParametersParser ¶
type AddressParametersParser struct {
ParametersParser
}
* Address parameters parser.
func NewAddressParametersParser ¶
func NewAddressParametersParser(buffer string) *AddressParametersParser
func NewAddressParametersParserFromLexer ¶
func NewAddressParametersParserFromLexer(lexer core.Lexer) *AddressParametersParser
func (*AddressParametersParser) Parse ¶
func (this *AddressParametersParser) Parse(addressParametersHeader header.AddressParametersHeader) (ParseException error)
type AddressParser ¶
type AddressParser struct {
SIPParser
}
* SIPParser for addresses.
func NewAddressParser ¶
func NewAddressParser(addr string) *AddressParser
func NewAddressParserFromLexer ¶
func NewAddressParserFromLexer(lexer core.Lexer) *AddressParser
func (*AddressParser) Address ¶
func (this *AddressParser) Address() (retval *address.AddressImpl, ParseException error)
func (*AddressParser) NameAddr ¶
func (this *AddressParser) NameAddr() (addr *address.AddressImpl, ParseException error)
type AlertInfoParser ¶
type AlertInfoParser struct {
ParametersParser
}
* SIPParser for AlertInfo header.
func NewAlertInfoParser ¶
func NewAlertInfoParser(alertInfo string) *AlertInfoParser
*
- Creates a new instance of AlertInfo SIPParser
- @param alertInfo the header to parse
func NewAlertInfoParserFromLexer ¶
func NewAlertInfoParserFromLexer(lexer core.Lexer) *AlertInfoParser
* Constructor
- @param lexer the lexer to use to parse the header
type AllowEventsParser ¶
type AllowEventsParser struct {
HeaderParser
}
* SIPParser for AllowEvents header.
func NewAllowEventsParser ¶
func NewAllowEventsParser(allowEvents string) *AllowEventsParser
*
- Creates a new instance of AllowEventsParser
- @param allowEvents the header to parse
func NewAllowEventsParserFromLexer ¶
func NewAllowEventsParserFromLexer(lexer core.Lexer) *AllowEventsParser
* Constructor
- @param lexer the lexer to use to parse the header
type AllowParser ¶
type AllowParser struct {
HeaderParser
}
* SIPParser for Allow header.
func NewAllowParser ¶
func NewAllowParser(allow string) *AllowParser
*
- Creates a new instance of AllowParser
- @param allow the header to parse
func NewAllowParserFromLexer ¶
func NewAllowParserFromLexer(lexer core.Lexer) *AllowParser
* Constructor
- @param lexer the lexer to use to parse the header
type AuthenticationInfoParser ¶
type AuthenticationInfoParser struct {
ParametersParser
}
* SIPParser for Authentication-Info header.
func NewAuthenticationInfoParser ¶
func NewAuthenticationInfoParser(authenticationInfo string) *AuthenticationInfoParser
*
- Creates a new instance of AuthenticationInfoParser
- @param authenticationInfo the header to parse
func NewAuthenticationInfoParserFromLexer ¶
func NewAuthenticationInfoParserFromLexer(lexer core.Lexer) *AuthenticationInfoParser
* Constructor
- @param lexer the lexer to use to parse the header
type AuthorizationParser ¶
type AuthorizationParser struct {
ChallengeParser
}
* SIPParser for authorization headers.
func NewAuthorizationParser ¶
func NewAuthorizationParser(authorization string) *AuthorizationParser
* Constructor
- @param String Authorization message to parse
func NewAuthorizationParserFromLexer ¶
func NewAuthorizationParserFromLexer(lexer core.Lexer) *AuthorizationParser
* Cosntructor
- @param lexer to set
type CSeqParser ¶
type CSeqParser struct {
HeaderParser
}
* SIPParser for CSeq headers.
func NewCSeqParser ¶
func NewCSeqParser(cseq string) *CSeqParser
func NewCSeqParserFromLexer ¶
func NewCSeqParserFromLexer(lexer core.Lexer) *CSeqParser
type CallIDParser ¶
type CallIDParser struct {
HeaderParser
}
* SIPParser for CALL ID header.
func NewCallIDParser ¶
func NewCallIDParser(callId string) *CallIDParser
* Creates new CallIDParser
- @param String callID message to parse to set
func NewCallIDParserFromLexer ¶
func NewCallIDParserFromLexer(lexer core.Lexer) *CallIDParser
* Constructor
- @param lexer to set
type CallInfoParser ¶
type CallInfoParser struct {
ParametersParser
}
* SIPParser for CallInfo header.
func NewCallInfoParser ¶
func NewCallInfoParser(callInfo string) *CallInfoParser
*
- Creates a new instance of CallInfoParser
- @param callInfo the header to parse
func NewCallInfoParserFromLexer ¶
func NewCallInfoParserFromLexer(lexer core.Lexer) *CallInfoParser
* Constructor
- @param lexer the lexer to use to parse the header
type ChallengeParser ¶
type ChallengeParser struct {
HeaderParser
}
func NewChallengeParser ¶
func NewChallengeParser(challenge string) *ChallengeParser
* Constructor
- @param String challenge message to parse to set
func NewChallengeParserFromLexer ¶
func NewChallengeParserFromLexer(lexer core.Lexer) *ChallengeParser
* Constructor
- @param String challenge message to parse to set
func (*ChallengeParser) Parse ¶
func (this *ChallengeParser) Parse(h header.AuthorizationHeader) (ParseException error)
* parser the String message
- @return Challenge object
- @throws ParseException if the message does not respect the spec.
func (*ChallengeParser) ParseParameter ¶
func (this *ChallengeParser) ParseParameter(h header.AuthorizationHeader) (ParseException error)
* Get the parameter of the challenge string
- @return NameValue containing the parameter
type ContactParser ¶
type ContactParser struct {
AddressParametersParser
}
func NewContactParser ¶
func NewContactParser(contact string) *ContactParser
func NewContactParserFromLexer ¶
func NewContactParserFromLexer(lexer core.Lexer) *ContactParser
type ContentDispositionParser ¶
type ContentDispositionParser struct {
ParametersParser
}
* SIPParser for ContentLanguage header.
func NewContentDispositionParser ¶
func NewContentDispositionParser(contentDisposition string) *ContentDispositionParser
*
- Creates a new instance of ContentDispositionParser
- @param contentDisposition the header to parse
func NewContentDispositionParserFromLexer ¶
func NewContentDispositionParserFromLexer(lexer core.Lexer) *ContentDispositionParser
* Constructor
- @param lexer the lexer to use to parse the header
type ContentEncodingParser ¶
type ContentEncodingParser struct {
HeaderParser
}
* SIPParser for ContentLanguage header.
func NewContentEncodingParser ¶
func NewContentEncodingParser(contentEncoding string) *ContentEncodingParser
*
- Creates a new instance of ContentEncodingParser
- @param contentEncoding the header to parse
func NewContentEncodingParserFromLexer ¶
func NewContentEncodingParserFromLexer(lexer core.Lexer) *ContentEncodingParser
* Constructor
- @param lexer the lexer to use to parse the header
type ContentLanguageParser ¶
type ContentLanguageParser struct {
HeaderParser
}
* SIPParser for ContentLanguage header.
func NewContentLanguageParser ¶
func NewContentLanguageParser(contentLanguage string) *ContentLanguageParser
*
- Creates a new instance of ContentLanguageParser
- @param contentLanguage the header to parse
func NewContentLanguageParserFromLexer ¶
func NewContentLanguageParserFromLexer(lexer core.Lexer) *ContentLanguageParser
* Constructor
- @param lexer the lexer to use to parse the header
type ContentLengthParser ¶
type ContentLengthParser struct {
HeaderParser
}
* SIPParser for Content-Length Header.
func NewContentLengthParser ¶
func NewContentLengthParser(contentLength string) *ContentLengthParser
func NewContentLengthParserFromLexer ¶
func NewContentLengthParserFromLexer(lexer core.Lexer) *ContentLengthParser
type ContentTypeParser ¶
type ContentTypeParser struct {
ParametersParser
}
* SIPParser for content type header.
func NewContentTypeParser ¶
func NewContentTypeParser(contentType string) *ContentTypeParser
func NewContentTypeParserFromLexer ¶
func NewContentTypeParserFromLexer(lexer core.Lexer) *ContentTypeParser
type DateParser ¶
type DateParser struct {
HeaderParser
}
* SIPParser for SIP Date field. Converts from SIP Date to the
- internal storage (Calendar)
func NewDateParser ¶
func NewDateParser(date string) *DateParser
* Constructor
- @param String route message to parse to set
func NewDateParserFromLexer ¶
func NewDateParserFromLexer(lexer core.Lexer) *DateParser
type ErrorInfoParser ¶
type ErrorInfoParser struct {
ParametersParser
}
* SIPParser for ErrorInfo header.
func NewErrorInfoParser ¶
func NewErrorInfoParser(errorInfo string) *ErrorInfoParser
*
- Creates a new instance of ErrorInfoParser
- @param errorInfo the header to parse
func NewErrorInfoParserFromLexer ¶
func NewErrorInfoParserFromLexer(lexer core.Lexer) *ErrorInfoParser
* Constructor
- @param lexer the lexer to use to parse the header
type EventParser ¶
type EventParser struct {
ParametersParser
}
* SIPParser for Event header.
func NewEventParser ¶
func NewEventParser(event string) *EventParser
*
- Creates a new instance of EventParser
- @param event the header to parse
func NewEventParserFromLexer ¶
func NewEventParserFromLexer(lexer core.Lexer) *EventParser
* Cosntructor
- @param lexer the lexer to use to parse the header
type ExpiresParser ¶
type ExpiresParser struct {
HeaderParser
}
* SIPParser for SIP Expires SIPParser. Converts from SIP Date to the * internal storage (Calendar).
func NewExpiresParser ¶
func NewExpiresParser(text string) *ExpiresParser
- protected constructor. *@param text is the text of the header to parse
func NewExpiresParserFromLexer ¶
func NewExpiresParserFromLexer(lexer core.Lexer) *ExpiresParser
- constructor. *@param lexer is the lexer passed in from the enclosing parser.
type FromParser ¶
type FromParser struct {
AddressParametersParser
}
* From header parser.
func NewFromParser ¶
func NewFromParser(from string) *FromParser
func NewFromParserFromLexer ¶
func NewFromParserFromLexer(lexer core.Lexer) *FromParser
type HeaderParser ¶
type HeaderParser struct {
SIPParser
}
* 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.
func NewHeaderParser ¶
func NewHeaderParser(header string) *HeaderParser
* Creates new HeaderParser
- @param String to parse.
func NewHeaderParserFromLexer ¶
func NewHeaderParserFromLexer(lexer core.Lexer) *HeaderParser
func (*HeaderParser) HeaderName ¶
func (this *HeaderParser) HeaderName(tok int)
* Parse the header name until the colon and chew WS after that.
type InReplyToParser ¶
type InReplyToParser struct {
HeaderParser
}
* SIPParser for InReplyTo header.
func NewInReplyToParser ¶
func NewInReplyToParser(inReplyTo string) *InReplyToParser
* Creates a new instance of InReplyToParser
- @param inReplyTo the header to parse
func NewInReplyToParserFromLexer ¶
func NewInReplyToParserFromLexer(lexer core.Lexer) *InReplyToParser
* Constructor
- @param lexer the lexer to use to parse the header
type MaxForwardsParser ¶
type MaxForwardsParser struct {
HeaderParser
}
* SIPParser for Max Forwards Header.
func NewMaxForwardsParser ¶
func NewMaxForwardsParser(contentLength string) *MaxForwardsParser
func NewMaxForwardsParserFromLexer ¶
func NewMaxForwardsParserFromLexer(lexer core.Lexer) *MaxForwardsParser
type MimeVersionParser ¶
type MimeVersionParser struct {
HeaderParser
}
* SIPParser for MimeVersion header.
func NewMimeVersionParser ¶
func NewMimeVersionParser(mimeVersion string) *MimeVersionParser
* Creates a new instance of MimeVersionParser
- @param mimeVersion the header to parse
func NewMimeVersionParserFromLexer ¶
func NewMimeVersionParserFromLexer(lexer core.Lexer) *MimeVersionParser
* Cosntructor
- @param lexer the lexer to use to parse the header
type MinExpiresParser ¶
type MinExpiresParser struct {
HeaderParser
}
* SIPParser for MinExpires header.
func NewMinExpiresParser ¶
func NewMinExpiresParser(minExpires string) *MinExpiresParser
- protected constructor. *@param text is the text of the header to parse
func NewMinExpiresParserFromLexer ¶
func NewMinExpiresParserFromLexer(lexer core.Lexer) *MinExpiresParser
- constructor. *@param lexer is the lexer passed in from the enclosing parser.
type OrganizationParser ¶
type OrganizationParser struct {
HeaderParser
}
* SIPParser for Organization header.
func NewOrganizationParser ¶
func NewOrganizationParser(organization string) *OrganizationParser
* Creates a new instance of OrganizationParser
- @param organization the header to parse
func NewOrganizationParserFromLexer ¶
func NewOrganizationParserFromLexer(lexer core.Lexer) *OrganizationParser
* Constructor
- @param lexer the lexer to use to parse the header
type ParametersParser ¶
type ParametersParser struct {
HeaderParser
}
* parameters parser header.
func NewParametersParser ¶
func NewParametersParser(buffer string) *ParametersParser
func NewParametersParserFromLexer ¶
func NewParametersParserFromLexer(lexer core.Lexer) *ParametersParser
func (*ParametersParser) Parse ¶
func (this *ParametersParser) Parse(parametersHeader header.ParametersHeader) (ParseException error)
type Parser ¶
func CreateParser ¶
* create a parser for a header. This is the parser factory.
type PriorityParser ¶
type PriorityParser struct {
HeaderParser
}
* SIPParser for Priority header.
func NewPriorityParser ¶
func NewPriorityParser(priority string) *PriorityParser
* Creates a new instance of PriorityParser
- @param priority the header to parse
func NewPriorityParserFromLexer ¶
func NewPriorityParserFromLexer(lexer core.Lexer) *PriorityParser
* Constructor
- @param lexer the lexer to use to parse the header
type ProxyAuthenticateParser ¶
type ProxyAuthenticateParser struct {
ChallengeParser
}
* SIPParser for ProxyAuthenticate headers.
func NewProxyAuthenticateParser ¶
func NewProxyAuthenticateParser(proxyAuthenticate string) *ProxyAuthenticateParser
* Constructor
- @param String paAuthenticate message to parse
func NewProxyAuthenticateParserFromLexer ¶
func NewProxyAuthenticateParserFromLexer(lexer core.Lexer) *ProxyAuthenticateParser
* Cosntructor
- @param lexer to set
type ProxyAuthorizationParser ¶
type ProxyAuthorizationParser struct {
ChallengeParser
}
* SIPParser for ProxyAuthorization headers.
func NewProxyAuthorizationParser ¶
func NewProxyAuthorizationParser(proxyAuthorization string) *ProxyAuthorizationParser
* Constructor
- @param proxyAuthorization -- header to parse
func NewProxyAuthorizationParserFromLexer ¶
func NewProxyAuthorizationParserFromLexer(lexer core.Lexer) *ProxyAuthorizationParser
* Cosntructor
- @param lexer to set
type ProxyRequireParser ¶
type ProxyRequireParser struct {
HeaderParser
}
* SIPParser for ProxyRequire header.
func NewProxyRequireParser ¶
func NewProxyRequireParser(require string) *ProxyRequireParser
- Creates a new instance of ProxyRequireParser *@param require the header to parse
func NewProxyRequireParserFromLexer ¶
func NewProxyRequireParserFromLexer(lexer core.Lexer) *ProxyRequireParser
* Constructor
- @param lexer the lexer to use to parse the header
type RAckParser ¶
type RAckParser struct {
HeaderParser
}
* SIPParser for RAck header.
func NewRAckParser ¶
func NewRAckParser(rack string) *RAckParser
- Creates a new instance of RAckParser *@param rack the header to parse
func NewRAckParserFromLexer ¶
func NewRAckParserFromLexer(lexer core.Lexer) *RAckParser
* Constructor
- @param lexer the lexer to use to parse the header
type RSeqParser ¶
type RSeqParser struct {
HeaderParser
}
* SIPParser for RSeq header.
func NewRSeqParser ¶
func NewRSeqParser(rseq string) *RSeqParser
- Creates a new instance of RSeqParser *@param rseq the header to parse
func NewRSeqParserFromLexer ¶
func NewRSeqParserFromLexer(lexer core.Lexer) *RSeqParser
* Constructor
- param lexer the lexer to use to parse the header
type ReasonParser ¶
type ReasonParser struct {
ParametersParser
}
* SIPParser for Reason header.
func NewReasonParser ¶
func NewReasonParser(reason string) *ReasonParser
* Creates a new instance of ReasonParser
- @param reason the header to parse
func NewReasonParserFromLexer ¶
func NewReasonParserFromLexer(lexer core.Lexer) *ReasonParser
* Constructor
- @param lexer the lexer to use to parse the header
type RecordRouteParser ¶
type RecordRouteParser struct {
AddressParametersParser
}
* SIPParser for a list of route headers.
func NewRecordRouteParser ¶
func NewRecordRouteParser(recordRoute string) *RecordRouteParser
* Constructor
- @param String recordRoute message to parse to set
func NewRecordRouteParserFromLexer ¶
func NewRecordRouteParserFromLexer(lexer core.Lexer) *RecordRouteParser
type ReferToParser ¶
type ReferToParser struct {
AddressParametersParser
}
* ReferTo Header parser.
func NewReferToParser ¶
func NewReferToParser(referTo string) *ReferToParser
* Creates new ReferToParser
- @param String to set
func NewReferToParserFromLexer ¶
func NewReferToParserFromLexer(lexer core.Lexer) *ReferToParser
type ReplyToParser ¶
type ReplyToParser struct {
AddressParametersParser
}
func NewReplyToParser ¶
func NewReplyToParser(replyTo string) *ReplyToParser
* Creates a new instance of ReplyToParser
- @param replyTo the header to parse
func NewReplyToParserFromLexer ¶
func NewReplyToParserFromLexer(lexer core.Lexer) *ReplyToParser
* Cosntructor
- param lexer the lexer to use to parse the header
type RequestLineParser ¶
type RequestLineParser struct {
SIPParser
}
* SIPParser for the SIP request line.
func NewRequestLineParser ¶
func NewRequestLineParser(requestLine string) *RequestLineParser
func NewRequestLineParserFromLexer ¶
func NewRequestLineParserFromLexer(lexer core.Lexer) *RequestLineParser
func (*RequestLineParser) Parse ¶
func (this *RequestLineParser) Parse() (rl *header.RequestLine, ParseException error)
type RequireParser ¶
type RequireParser struct {
HeaderParser
}
* SIPParser for Require header.
func NewRequireParser ¶
func NewRequireParser(require string) *RequireParser
* Creates a new instance of RequireParser
- @param require the header to parse
func NewRequireParserFromLexer ¶
func NewRequireParserFromLexer(lexer core.Lexer) *RequireParser
* Constructor
- @param lexer the lexer to use to parse the header
type RetryAfterParser ¶
type RetryAfterParser struct {
HeaderParser
}
* SIPParser for RetryAfter header.
func NewRetryAfterParser ¶
func NewRetryAfterParser(retryAfter string) *RetryAfterParser
* Creates a new instance of RetryAfterParser
- @param retryAfter the header to parse
func NewRetryAfterParserFromLexer ¶
func NewRetryAfterParserFromLexer(lexer core.Lexer) *RetryAfterParser
* Constructor
- @param lexer the lexer to use to parse the header
type RouteParser ¶
type RouteParser struct {
AddressParametersParser
}
func NewRouteParser ¶
func NewRouteParser(route string) *RouteParser
* Constructor
- @param String route message to parse to set
func NewRouteParserFromLexer ¶
func NewRouteParserFromLexer(lexer core.Lexer) *RouteParser
type SIPLexer ¶
* SIPLexer class for the parser.
func NewSIPLexer ¶
func (*SIPLexer) SelectLexer ¶
type SIPParser ¶
type SIPParser struct {
core.CoreParser
}
* Base parser class.
func NewSIPParser ¶
func (*SIPParser) CreateParseException ¶
func (*SIPParser) SipVersion ¶
type ServerParser ¶
type ServerParser struct {
HeaderParser
}
* SIPParser for Server header.
func NewServerParser ¶
func NewServerParser(server string) *ServerParser
* Creates a new instance of ServerParser
- @param server the header to parse
func NewServerParserFromLexer ¶
func NewServerParserFromLexer(lexer core.Lexer) *ServerParser
* Constructor
- @param lexer the lexer to use to parse the header
type StatusLineParser ¶
type StatusLineParser struct {
SIPParser
}
* SIPParser for the SIP status line.
func NewStatusLineParser ¶
func NewStatusLineParser(statusLine string) *StatusLineParser
func NewStatusLineParserFromLexer ¶
func NewStatusLineParserFromLexer(lexer core.Lexer) *StatusLineParser
func (*StatusLineParser) Parse ¶
func (this *StatusLineParser) Parse() (sl *header.StatusLine, ParseException error)
func (*StatusLineParser) ReasonPhrase ¶
func (this *StatusLineParser) ReasonPhrase() string
func (*StatusLineParser) StatusCode ¶
func (this *StatusLineParser) StatusCode() (scode int, ParseException error)
type SubjectParser ¶
type SubjectParser struct {
HeaderParser
}
* SIPParser for Subject header.
func NewSubjectParser ¶
func NewSubjectParser(subject string) *SubjectParser
* Creates a new instance of SubjectParser
- @param subject the header to parse
func NewSubjectParserFromLexer ¶
func NewSubjectParserFromLexer(lexer core.Lexer) *SubjectParser
* Cosntructor
- @param lexer the lexer to use to parse the header
type SubscriptionStateParser ¶
type SubscriptionStateParser struct {
HeaderParser
}
* SIPParser for SubscriptionState header.
func NewSubscriptionStateParser ¶
func NewSubscriptionStateParser(subscriptionState string) *SubscriptionStateParser
* Creates a new instance of SubscriptionStateParser
- @param subscriptionState the header to parse
func NewSubscriptionStateParserFromLexer ¶
func NewSubscriptionStateParserFromLexer(lexer core.Lexer) *SubscriptionStateParser
* Constructor
- @param lexer the lexer to use to parse the header
type SupportedParser ¶
type SupportedParser struct {
HeaderParser
}
* SIPParser for Supported header.
func NewSupportedParser ¶
func NewSupportedParser(supported string) *SupportedParser
* Creates a new instance of SupportedParser
- @param supported the header to parse
func NewSupportedParserFromLexer ¶
func NewSupportedParserFromLexer(lexer core.Lexer) *SupportedParser
* Constructor
- @param lexer the lexer to use to parse the header
type TimeStampParser ¶
type TimeStampParser struct {
HeaderParser
}
* SIPParser for TimeStamp header.
func NewTimeStampParser ¶
func NewTimeStampParser(timeStamp string) *TimeStampParser
* Creates a new instance of TimeStampParser
- @param timeStamp the header to parse
func NewTimeStampParserFromLexer ¶
func NewTimeStampParserFromLexer(lexer core.Lexer) *TimeStampParser
* Constructor
- @param lexer the lexer to use to parse the header
type ToParser ¶
type ToParser struct {
AddressParametersParser
}
To Header parser.
func NewToParserFromLexer ¶
type URLParser ¶
type URLParser struct {
SIPParser
}
* SIPParser For SIP and Tel URLs. Other kinds of URL's are handled by the
func NewURLParser ¶
func NewURLParserFromLexer ¶
func (*URLParser) Base_phone_number ¶
* SIPParser for the base phone number.
func (*URLParser) Global_phone_number ¶
func (this *URLParser) Global_phone_number() (tn *address.TelephoneNumber, ParseException error)
func (*URLParser) IsReserved ¶
func (*URLParser) IsReservedNoSlash ¶
func (*URLParser) IsUnreserved ¶
func (*URLParser) IsUserUnreserved ¶
func (*URLParser) Local_number ¶
* SIPParser for the local phone #.
func (*URLParser) Local_phone_number ¶
func (this *URLParser) Local_phone_number() (tn *address.TelephoneNumber, ParseException error)
func (*URLParser) ParamNameOrValue ¶
* Name or value of a parameter.
func (*URLParser) ParseTelephoneNumber ¶
func (this *URLParser) ParseTelephoneNumber() (tn *address.TelephoneNumber, ParseException error)
- SIPParser for telephone subscriber. * *@return the parsed telephone number.
func (*URLParser) PeekScheme ¶
func (*URLParser) Qheader ¶
* Get a name value for a given query header (ie one that comes
- after the ?).
func (*URLParser) SipURL ¶
func (this *URLParser) SipURL() (sipurl *address.SipURIImpl, ParseException error)
func (*URLParser) TelURL ¶
func (this *URLParser) TelURL() (telUrl *address.TelURLImpl, ParseException error)
- Parse and return a structure for a Tel URL. *@return a parsed tel url structure.
func (*URLParser) Tel_parameters ¶
func (this *URLParser) Tel_parameters() (nvl *core.NameValueList, ParseException error)
func (*URLParser) Unreserved ¶
func (*URLParser) UriReference ¶
* Parse and return a structure for a generic URL.
- Note that non SIP URLs are just stored as a string (not parsed). *@return URI is a URL structure for a SIP url. *@throws ParsException if there was a problem parsing.
func (*URLParser) UricNoSlash ¶
func (*URLParser) UricString ¶
type UnsupportedParser ¶
type UnsupportedParser struct {
HeaderParser
}
* SIPParser for Unsupported header.
func NewUnsupportedParser ¶
func NewUnsupportedParser(unsupported string) *UnsupportedParser
* Creates a new instance of UnsupportedParser
- @param unsupported - Unsupported header to parse
func NewUnsupportedParserFromLexer ¶
func NewUnsupportedParserFromLexer(lexer core.Lexer) *UnsupportedParser
* Constructor
- @param lexer - the lexer to use to parse the header
type UserAgentParser ¶
type UserAgentParser struct {
HeaderParser
}
* SIPParser for UserAgent header.
func NewUserAgentParser ¶
func NewUserAgentParser(userAgent string) *UserAgentParser
* Constructor
- @param userAgent - UserAgent header to parse *
func NewUserAgentParserFromLexer ¶
func NewUserAgentParserFromLexer(lexer core.Lexer) *UserAgentParser
* Constructor
- @param lexer - the lexer to use.
type ViaParser ¶
type ViaParser struct {
HeaderParser
}
* SIPParser for via headers.
func NewViaParser ¶
func NewViaParserFromLexer ¶
type WWWAuthenticateParser ¶
type WWWAuthenticateParser struct {
ChallengeParser
}
* SIPParser for WWW authenitcate header.
func NewWWWAuthenticateParser ¶
func NewWWWAuthenticateParser(wwwAuthenticate string) *WWWAuthenticateParser
* Constructor
- @param wwwAuthenticate - message to parse
func NewWWWAuthenticateParserFromLexer ¶
func NewWWWAuthenticateParserFromLexer(lexer core.Lexer) *WWWAuthenticateParser
* Cosntructor
- @param lexer - lexer to use.
type WarningParser ¶
type WarningParser struct {
HeaderParser
}
* SIPParser for Warning header.
func NewWarningParser ¶
func NewWarningParser(warning string) *WarningParser
* Constructor
- @param warning - Warning header to parse
func NewWarningParserFromLexer ¶
func NewWarningParserFromLexer(lexer core.Lexer) *WarningParser
* Cosntructor
- @param lexer - the lexer to use.
Source Files
¶
- AcceptEncodingParser.go
- AcceptLanguageParser.go
- AcceptParser.go
- AddressParametersParser.go
- AddressParser.go
- AlertInfoParser.go
- AllowEventsParser.go
- AllowParser.go
- AuthenticationInfoParser.go
- AuthorizationParser.go
- CSeqParser.go
- CallIdParser.go
- CallInfoParser.go
- ChallengeParser.go
- ContactParser.go
- ContentDispositionParser.go
- ContentEncodingParser.go
- ContentLanguageParser.go
- ContentLengthParser.go
- ContentTypeParser.go
- DateParser.go
- ErrorInfoParser.go
- EventParser.go
- ExpiresParser.go
- FromParser.go
- HeaderParser.go
- InReplyToParser.go
- MaxForwardsParser.go
- MimeVersionParser.go
- MinExpiresParser.go
- OrganizationParser.go
- ParametersParser.go
- ParserFactory.go
- PriorityParser.go
- ProxyAuthenticateParser.go
- ProxyAuthorizationParser.go
- ProxyRequireParser.go
- RAckParser.go
- RSeqParser.go
- ReasonParser.go
- RecordRouteParser.go
- ReferToParser.go
- ReplyToParser.go
- RequestLineParser.go
- RequireParser.go
- RetryAfterParser.go
- RouteParser.go
- SIPLexer.go
- SIPParser.go
- ServerParser.go
- StatusLineParser.go
- SubjectParser.go
- SubscriptionStateParser.go
- SupportedParser.go
- TimeStampParser.go
- ToParser.go
- URLParser.go
- UnsupportedParser.go
- UserAgentParser.go
- ViaParser.go
- WWWAuthenticateParser.go
- WarningParser.go