public class HostNameParser extends ParserCore
debug, lexer| Constructor and Description |
|---|
HostNameParser(LexerCore lexer)
The lexer is initialized with the buffer.
|
HostNameParser(String hname) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeDomainLabel() |
Host |
host() |
HostPort |
hostPort(boolean allowWS)
Parses a host:port string
|
protected String |
ipv6Reference() |
static void |
main(String[] args) |
public HostNameParser(String hname)
public HostNameParser(LexerCore lexer)
protected void consumeDomainLabel()
throws ParseException
ParseExceptionprotected String ipv6Reference() throws ParseException
ParseExceptionpublic Host host() throws ParseException
ParseExceptionpublic 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 © 2018. All Rights Reserved.