Package io.quarkus.vertx.http.runtime
Record Class ForwardingProxyHandlerFactory
java.lang.Object
java.lang.Record
io.quarkus.vertx.http.runtime.ForwardingProxyHandlerFactory
public record ForwardingProxyHandlerFactory(ProxyConfig proxyConfig, io.vertx.core.http.ClientAuth clientAuth, Optional<String> tlsConfigName, Supplier<io.vertx.core.Vertx> vertx, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> root, String configPrefix, boolean allowForwarded, boolean allowXForwarded, boolean hasClientAuthTrustCheck, boolean hasHostTrustCheck)
extends Record
Applies a
TrustedProxyCheck based on ProxyConfig when the proxy address forwarding is enabled.-
Constructor Summary
ConstructorsConstructorDescriptionForwardingProxyHandlerFactory(ProxyConfig proxyConfig, io.vertx.core.http.ClientAuth clientAuth, Optional<String> tlsConfigName, Supplier<io.vertx.core.Vertx> vertx, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> root, String configPrefix) ForwardingProxyHandlerFactory(ProxyConfig proxyConfig, io.vertx.core.http.ClientAuth clientAuth, Optional<String> tlsConfigName, Supplier<io.vertx.core.Vertx> vertx, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> root, String configPrefix, boolean allowForwarded, boolean allowXForwarded, boolean hasClientAuthTrustCheck, boolean hasHostTrustCheck) Creates an instance of aForwardingProxyHandlerFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowForwardedrecord component.booleanReturns the value of theallowXForwardedrecord component.io.vertx.core.http.ClientAuthReturns the value of theclientAuthrecord component.Returns the value of theconfigPrefixrecord component.io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasClientAuthTrustCheckrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasHostTrustCheckrecord component.Returns the value of theproxyConfigrecord component.io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> root()Returns the value of therootrecord component.Returns the value of thetlsConfigNamerecord component.final StringtoString()Returns a string representation of this record class.Supplier<io.vertx.core.Vertx> vertx()Returns the value of thevertxrecord component.
-
Constructor Details
-
ForwardingProxyHandlerFactory
public ForwardingProxyHandlerFactory(ProxyConfig proxyConfig, io.vertx.core.http.ClientAuth clientAuth, Optional<String> tlsConfigName, Supplier<io.vertx.core.Vertx> vertx, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> root, String configPrefix) -
ForwardingProxyHandlerFactory
public ForwardingProxyHandlerFactory(ProxyConfig proxyConfig, io.vertx.core.http.ClientAuth clientAuth, Optional<String> tlsConfigName, Supplier<io.vertx.core.Vertx> vertx, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> root, String configPrefix, boolean allowForwarded, boolean allowXForwarded, boolean hasClientAuthTrustCheck, boolean hasHostTrustCheck) Creates an instance of aForwardingProxyHandlerFactoryrecord class.- Parameters:
proxyConfig- the value for theproxyConfigrecord componentclientAuth- the value for theclientAuthrecord componenttlsConfigName- the value for thetlsConfigNamerecord componentvertx- the value for thevertxrecord componentroot- the value for therootrecord componentconfigPrefix- the value for theconfigPrefixrecord componentallowForwarded- the value for theallowForwardedrecord componentallowXForwarded- the value for theallowXForwardedrecord componenthasClientAuthTrustCheck- the value for thehasClientAuthTrustCheckrecord componenthasHostTrustCheck- the value for thehasHostTrustCheckrecord component
-
-
Method Details
-
createHandler
public io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> createHandler() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
proxyConfig
Returns the value of theproxyConfigrecord component.- Returns:
- the value of the
proxyConfigrecord component
-
clientAuth
public io.vertx.core.http.ClientAuth clientAuth()Returns the value of theclientAuthrecord component.- Returns:
- the value of the
clientAuthrecord component
-
tlsConfigName
Returns the value of thetlsConfigNamerecord component.- Returns:
- the value of the
tlsConfigNamerecord component
-
vertx
Returns the value of thevertxrecord component.- Returns:
- the value of the
vertxrecord component
-
root
public io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> root()Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
configPrefix
Returns the value of theconfigPrefixrecord component.- Returns:
- the value of the
configPrefixrecord component
-
allowForwarded
public boolean allowForwarded()Returns the value of theallowForwardedrecord component.- Returns:
- the value of the
allowForwardedrecord component
-
allowXForwarded
public boolean allowXForwarded()Returns the value of theallowXForwardedrecord component.- Returns:
- the value of the
allowXForwardedrecord component
-
hasClientAuthTrustCheck
public boolean hasClientAuthTrustCheck()Returns the value of thehasClientAuthTrustCheckrecord component.- Returns:
- the value of the
hasClientAuthTrustCheckrecord component
-
hasHostTrustCheck
public boolean hasHostTrustCheck()Returns the value of thehasHostTrustCheckrecord component.- Returns:
- the value of the
hasHostTrustCheckrecord component
-