| |
|
| java.lang.Object gov.nist.core.StringTokenizer gov.nist.core.LexerCore gov.nist.siplite.parser.Lexer
Constructor Summary | |
public | Lexer(String lexerName, String buffer) Constructor with initial lecername and buffer to
process. |
Lexer | public Lexer(String lexerName, String buffer)(Code) | | Constructor with initial lecername and buffer to
process.
Parameters: lexerName - lexer for processing Parameters: buffer - data to be parsed |
getHeaderName | public static String getHeaderName(String line)(Code) | | Gets the header name of the line.
Parameters: line - the text to be parsed the header name |
getHeaderValue | public static String getHeaderValue(String line)(Code) | | Gets the header value of the line.
Parameters: line - the text to be parsed the header value |
isValidDisplayName | public static boolean isValidDisplayName(String displayName)(Code) | | Checks if the given string is valid display name.
Parameters: displayName - the text to be parsed true if the string is a valid display name, false otherwise |
isValidHeaderValue | public static boolean isValidHeaderValue(String value)(Code) | | Checks if the given string is a valid header value.
Parameters: value - the text to be parsed true if the string is a valid value, false otherwise |
isValidHostname | public static boolean isValidHostname(String address)(Code) | | Checks if the given string is valid hostname
BNF(RFC3261 p.222)
hostname = *( domainlabel "." ) toplabel [ "." ]
domainlabel = alphanum
/ alphanum *( alphanum / "-" ) alphanum
toplabel = ALPHA / ALPHA *( alphanum / "-" ) alphanum
Parameters: address - the text to be parsed true if the string is a valid hostname,false otherwise |
isValidIpv4Address | public static boolean isValidIpv4Address(String address)(Code) | | Checks if the given string is valid IPv4Address.
BNF (RFC3261, p. 223, 232):
IPv4address = 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT
Parameters: address - the text to be parsed true if the string is a valid IPv4Address, false otherwise |
isValidIpv6Address | public static boolean isValidIpv6Address(String address)(Code) | | Checks if the given string is valid IPv6Address.
BNF (RFC3261, p. 223, 232):
IPv4address = 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT "." 1*3DIGIT
IPv6address = hexpart [ ":" IPv4address ]
hexpart = hexseq / hexseq "::" [ hexseq ] / "::" [ hexseq ]
hexseq = hex4 *( ":" hex4)
hex4 = 1*4HEXDIG
Parameters: address - the text to be parsed true if the string is a valid IPv6Address, false otherwise |
isValidName | public static boolean isValidName(String name)(Code) | | Checks if the given string is a valid method/header/parameter name.
Parameters: name - the text to be parsed true if the string is a valid name, false otherwise |
isValidParameterValue | public static boolean isValidParameterValue(String value)(Code) | | Checks if the given string is a valid parameter value.
Parameters: value - the text to be parsed true if the string is a valid value, false otherwise |
isValidScheme | public static boolean isValidScheme(String scheme)(Code) | | Checks if the given string is valid scheme name.
Parameters: scheme - the text to be parsed true if the string is a valid scheme name, false otherwise |
isValidUserName | public static boolean isValidUserName(String name)(Code) | | Checks if the given string is valid as user part of a SIP(S)-URI.
Parameters: name - the text to be parsed true if the string is a valid name, false otherwise |
isValidValue | protected static boolean isValidValue(String value, boolean isParameter)(Code) | | Checks if the given string is a valid header/parameter value.
Parameters: value - the text to be parsed Parameters: isParameter - true if the value to be checked is a parametervalue, false otherwise true if the string is a valid value, false otherwise |
selectLexer | public void selectLexer(String lexerName)(Code) | | Selects the lexer to used based
on the current parsing context.
Parameters: lexerName - the lexer engine |
|
|
|