Package org.eclipse.jetty.http2.server
Class AuthorityCustomizer
java.lang.Object
org.eclipse.jetty.http2.server.AuthorityCustomizer
- All Implemented Interfaces:
org.eclipse.jetty.server.HttpConfiguration.Customizer
public class AuthorityCustomizer
extends Object
implements org.eclipse.jetty.server.HttpConfiguration.Customizer
A HttpConfiguration.Customizer that synthesizes the authority when the
HttpHeader.C_AUTHORITY header is missing.
After customization, the synthesized authority is accessible via
HttpURI.getAuthority() from the Request object.
The authority is synthesized from the Host header.
If the Host header is also missing, it is synthesized using
Request.getServerName(Request) and Request.getServerPort(Request).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.server.Requestcustomize(org.eclipse.jetty.server.Request request, org.eclipse.jetty.http.HttpFields.Mutable responseHeaders)
-
Constructor Details
-
AuthorityCustomizer
public AuthorityCustomizer()
-
-
Method Details
-
customize
public org.eclipse.jetty.server.Request customize(org.eclipse.jetty.server.Request request, org.eclipse.jetty.http.HttpFields.Mutable responseHeaders) - Specified by:
customizein interfaceorg.eclipse.jetty.server.HttpConfiguration.Customizer
-