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
ParseException
protected String ipv6Reference() throws ParseException
ParseException
public Host host() throws ParseException
ParseException
public HostPort hostPort(boolean allowWS) throws ParseException
allowWS
- - whether whitespace is allowed around ':', only true for Via headersParseException
public static void main(String[] args) throws ParseException
ParseException
Copyright © 2015. All Rights Reserved.