Top Description Fields Constructors Methods
org.eclipse.jetty.http

public Class HostPortHttpField

extends HttpField
Class Inheritance
Imports
org.eclipse.jetty.util.HostPort

An HttpField holding a preparsed Host and port number
See Also
HostPort

Field Summary

Modifier and TypeField and Description
pack-priv final HostPort
Inherited from org.eclipse.jetty.http.HttpField:
NAME_VALUE_TOKENIZERPARAMETER_TOKENIZER

Constructor Summary

AccessConstructor and Description
public
protected
HostPortHttpField(HttpHeader header, String name, String authority)

public
HostPortHttpField(String host, int port)

public
public
HostPortHttpField(HttpHeader header, String headerString, HostPort hostport)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the host
getHost
()

Get the host.

public HostPort
public int

Returns:

the port
getPort
()

Get the port.

public int

Returns:

the port
getPort
(int
The default port to return if no port set
defaultPort
)

Get the port.

Inherited from org.eclipse.jetty.http.HttpField:
containscontainscontainsLastcontainsLastequalsgetHeadergetIntValuegetLongValuegetLowerCaseNamegetNamegetValuegetValueListgetValueParametersgetValueshashCodeisisSameNamestripParameterstoStringvalueParameters

Field Detail

_hostPortback to summary
pack-priv final HostPort _hostPort

Constructor Detail

HostPortHttpFieldback to summary
public HostPortHttpField(String authority)
HostPortHttpFieldback to summary
protected HostPortHttpField(HttpHeader header, String name, String authority)
HostPortHttpFieldback to summary
public HostPortHttpField(String host, int port)
HostPortHttpFieldback to summary
public HostPortHttpField(HostPort hostport)
HostPortHttpFieldback to summary
public HostPortHttpField(HttpHeader header, String headerString, HostPort hostport)

Method Detail

getHostback to summary
public String getHost()

Get the host.

Returns:String

the host

getHostPortback to summary
public HostPort getHostPort()
getPortback to summary
public int getPort()

Get the port.

Returns:int

the port

getPortback to summary
public int getPort(int defaultPort)

Get the port.

Parameters
defaultPort:int

The default port to return if no port set

Returns:int

the port