Package org.eclipse.jetty.server
Class ForwardedRequestCustomizer.Forwarded
- java.lang.Object
-
- org.eclipse.jetty.http.QuotedCSVParser
-
- org.eclipse.jetty.server.ForwardedRequestCustomizer.Forwarded
-
- Enclosing class:
- ForwardedRequestCustomizer
private class ForwardedRequestCustomizer.Forwarded extends QuotedCSVParser
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ForwardedRequestCustomizer.MutableHostPort_authority(package private) HttpConfiguration_config(package private) ForwardedRequestCustomizer.MutableHostPort_for(package private) java.lang.String_proto(package private) ForwardedRequestCustomizer.Source_protoSource(package private) Request_request(package private) java.lang.Boolean_secure(package private) boolean_secureScheme-
Fields inherited from class org.eclipse.jetty.http.QuotedCSVParser
_keepQuotes
-
-
Constructor Summary
Constructors Constructor Description Forwarded(Request request, HttpConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ForwardedRequestCustomizer.MutableHostPortgetAuthority()private ForwardedRequestCustomizer.MutableHostPortgetFor()voidhandleCipherSuite(HttpField field)Called if header isProxy-auth-certvoidhandleForwardedFor(HttpField field)Called if header isX-Forwarded-ForvoidhandleForwardedHost(HttpField field)Called if header isX-Forwarded-HostvoidhandleForwardedPort(HttpField field)Called if header isX-Forwarded-PortvoidhandleForwardedServer(HttpField field)Called if header isX-Forwarded-ServervoidhandleHttps(HttpField field)Called if header isX-Proxied-HttpsvoidhandleProto(HttpField field)Called if header isX-Forwarded-ProtovoidhandleRFC7239(HttpField field)Called if header isForwardedvoidhandleSslSessionId(HttpField field)Called if header isProxy-Ssl-IdbooleanhasFor()booleanisSecure()protected voidparsedParam(java.lang.StringBuffer buffer, int valueLength, int paramName, int paramValue)Called when a parameter has been parsedprivate voidupdateAuthority(java.lang.String value, ForwardedRequestCustomizer.Source source)private voidupdatePort(int port, ForwardedRequestCustomizer.Source source)private voidupdateProto(java.lang.String proto, ForwardedRequestCustomizer.Source source)-
Methods inherited from class org.eclipse.jetty.http.QuotedCSVParser
addValue, parsedValue, parsedValueAndParams, unquote
-
-
-
-
Field Detail
-
_config
HttpConfiguration _config
-
_request
Request _request
-
_authority
ForwardedRequestCustomizer.MutableHostPort _authority
-
_proto
java.lang.String _proto
-
_protoSource
ForwardedRequestCustomizer.Source _protoSource
-
_secure
java.lang.Boolean _secure
-
_secureScheme
boolean _secureScheme
-
-
Constructor Detail
-
Forwarded
public Forwarded(Request request, HttpConfiguration config)
-
-
Method Detail
-
isSecure
public boolean isSecure()
-
hasFor
public boolean hasFor()
-
getAuthority
private ForwardedRequestCustomizer.MutableHostPort getAuthority()
-
getFor
private ForwardedRequestCustomizer.MutableHostPort getFor()
-
handleCipherSuite
public void handleCipherSuite(HttpField field)
Called if header isProxy-auth-cert
-
handleSslSessionId
public void handleSslSessionId(HttpField field)
Called if header isProxy-Ssl-Id
-
handleForwardedHost
public void handleForwardedHost(HttpField field)
Called if header isX-Forwarded-Host
-
handleForwardedFor
public void handleForwardedFor(HttpField field)
Called if header isX-Forwarded-For
-
handleForwardedServer
public void handleForwardedServer(HttpField field)
Called if header isX-Forwarded-Server
-
handleForwardedPort
public void handleForwardedPort(HttpField field)
Called if header isX-Forwarded-Port
-
handleProto
public void handleProto(HttpField field)
Called if header isX-Forwarded-Proto
-
handleHttps
public void handleHttps(HttpField field)
Called if header isX-Proxied-Https
-
handleRFC7239
public void handleRFC7239(HttpField field)
Called if header isForwarded
-
parsedParam
protected void parsedParam(java.lang.StringBuffer buffer, int valueLength, int paramName, int paramValue)Description copied from class:QuotedCSVParserCalled when a parameter has been parsed- Overrides:
parsedParamin classQuotedCSVParser- Parameters:
buffer- Containing the trimmed value and all parameters, which may be mutatedvalueLength- The length of the valueparamName- The index of the start of the parameter just parsedparamValue- The index of the start of the parameter value just parsed, or -1
-
updateAuthority
private void updateAuthority(java.lang.String value, ForwardedRequestCustomizer.Source source)
-
updatePort
private void updatePort(int port, ForwardedRequestCustomizer.Source source)
-
updateProto
private void updateProto(java.lang.String proto, ForwardedRequestCustomizer.Source source)
-
-