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

public Class HostHeaderCustomizer

extends Object
implements Customizer
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.HttpConfiguration.Customizer
Imports
org.eclipse.jetty.http.HostPortHttpField, .HttpFields, .HttpHeader, .HttpScheme, .HttpURI, .HttpVersion

Adds a missing Host header (for example, HTTP 1.0 or 2.0 requests).

Field Summary

Modifier and TypeField and Description
private final String
private final int

Constructor Summary

AccessConstructor and Description
public
public
HostHeaderCustomizer(String
the serverName to set on the request (the serverPort will not be set)
serverName
)

public
HostHeaderCustomizer(String
the serverName to set on the request
serverName
,
int
the serverPort to set on the request
serverPort
)

Method Summary

Modifier and TypeMethod and Description
public Request
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serverNameback to summary
private final String serverName
serverPortback to summary
private final int serverPort

Constructor Detail

HostHeaderCustomizerback to summary
public HostHeaderCustomizer()
HostHeaderCustomizerback to summary
public HostHeaderCustomizer(String serverName)
Parameters
serverName:String

the serverName to set on the request (the serverPort will not be set)

HostHeaderCustomizerback to summary
public HostHeaderCustomizer(String serverName, int serverPort)
Parameters
serverName:String

the serverName to set on the request

serverPort:int

the serverPort to set on the request

Method Detail

customizeback to summary
public Request customize(Request request, HttpFields.Mutable responseHeaders)

Implements org.eclipse.jetty.server.HttpConfiguration.Customizer.customize.

Annotations
@Override