public class HostNameParser extends ParserCore
debug, lexer| Constructor and Description |
|---|
HostNameParser(char[] hname) |
HostNameParser(LexerCore lexer)
The lexer is initialized with the buffer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeDomainLabel() |
gov.nist.core.Host |
host() |
gov.nist.core.HostPort |
hostPort(boolean allowWS)
Parses a host:port string
|
protected String |
ipv6Reference() |
static void |
main(String[] args) |
public HostNameParser(char[] hname)
public HostNameParser(LexerCore lexer)
protected void consumeDomainLabel()
throws ParseException
ParseExceptionprotected String ipv6Reference() throws ParseException
ParseExceptionpublic gov.nist.core.Host host()
throws ParseException
ParseExceptionpublic gov.nist.core.HostPort hostPort(boolean allowWS)
throws ParseException
allowWS - - whether whitespace is allowed around ':', only true for Via headersParseExceptionpublic static void main(String[] args) throws ParseException
ParseExceptionCopyright © 2016. All Rights Reserved.