- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.HostHeader
-
- All Implemented Interfaces:
Comparable<HttpHeader>
,Debug
public final class HostHeader extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostHeader
create(String host)
static HostHeader
create(String host, int port)
static HostHeader
create(InetSocketAddress address)
static HostHeader
create(UriAuthority authority)
static HostHeader
create(UriHost host)
static HostHeader
create(UriHost host, UriPort port)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
UriHost
getHost()
int
hashCode()
InetSocketAddress
inetSocketAddress()
String
lowerCaseName()
String
name()
static Parser<HostHeader>
parseHeaderValue(Input input, HttpParser http)
UriPort
port()
Writer<?,?>
writeHeaderValue(Output<?> output, HttpWriter http)
-
Methods inherited from class swim.http.HttpHeader
compareTo, httpWriter, isBlank, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseName
in classHttpHeader
-
name
public String name()
- Specified by:
name
in classHttpHeader
-
getHost
public UriHost getHost()
-
port
public UriPort port()
-
inetSocketAddress
public InetSocketAddress inetSocketAddress() throws UnknownHostException
- Throws:
UnknownHostException
-
writeHeaderValue
public Writer<?,?> writeHeaderValue(Output<?> output, HttpWriter http)
- Specified by:
writeHeaderValue
in classHttpHeader
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.- Specified by:
debug
in interfaceDebug
- Specified by:
debug
in classHttpHeader
- Returns:
- the continuation of the
output
.
-
create
public static HostHeader create(UriHost host, UriPort port)
-
create
public static HostHeader create(UriHost host)
-
create
public static HostHeader create(UriAuthority authority)
-
create
public static HostHeader create(String host, int port)
-
create
public static HostHeader create(String host)
-
create
public static HostHeader create(InetSocketAddress address)
-
parseHeaderValue
public static Parser<HostHeader> parseHeaderValue(Input input, HttpParser http)
-
-