Package org.eclipse.jetty.http2.server
Class AuthorityCustomizer
java.lang.Object
org.eclipse.jetty.http2.server.AuthorityCustomizer
- All Implemented Interfaces:
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
-
Method Summary
-
Constructor Details
-
AuthorityCustomizer
public AuthorityCustomizer()
-
-
Method Details
-
customize
- Specified by:
customize
in interfaceHttpConfiguration.Customizer
-