- java.lang.Object
-
- swim.http.HttpPart
-
- swim.http.HttpHeader
-
- swim.http.header.Host
-
- All Implemented Interfaces:
Debug
public final class Host extends HttpHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Hostcreate(String host)static Hostcreate(String host, int port)static Hostcreate(InetSocketAddress address)static Hostcreate(UriAuthority authority)static Hostcreate(UriHost host)static Hostcreate(UriHost host, UriPort port)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)UriHostgetHost()inthashCode()InetSocketAddressinetSocketAddress()StringlowerCaseName()Stringname()static Parser<Host>parseHttpValue(Input input, HttpParser http)UriPortport()Writer<?,?>writeHttpValue(Output<?> output, HttpWriter http)-
Methods inherited from class swim.http.HttpHeader
httpWriter, isBlank, parseHttp, toString, value, writeHttp
-
Methods inherited from class swim.http.HttpPart
httpWriter, toHttp, writeHttp
-
-
-
-
Method Detail
-
lowerCaseName
public String lowerCaseName()
- Specified by:
lowerCaseNamein classHttpHeader
-
name
public String name()
- Specified by:
namein classHttpHeader
-
getHost
public UriHost getHost()
-
port
public UriPort port()
-
inetSocketAddress
public InetSocketAddress inetSocketAddress() throws UnknownHostException
- Throws:
UnknownHostException
-
writeHttpValue
public Writer<?,?> writeHttpValue(Output<?> output, HttpWriter http)
- Specified by:
writeHttpValuein classHttpHeader
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.- Specified by:
debugin interfaceDebug- Specified by:
debugin classHttpHeader- Returns:
- the continuation of the
output.
-
create
public static Host create(UriAuthority authority)
-
create
public static Host create(InetSocketAddress address)
-
parseHttpValue
public static Parser<Host> parseHttpValue(Input input, HttpParser http)
-
-