- All Implemented Interfaces:
Route.Aware,Route.Before,Route.Filter
If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
please consider to set Router.setTrustProxy(boolean) option.
- Author:
- edgar
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a SSLHandler and redirect non-HTTPs requests to the HTTPS version of this call.SSLHandler(int port) Creates a SSLHandler and redirect non-HTTPs requests to the HTTPS version of this call.SSLHandler(String host) Creates a SSLHandler and redirect non-HTTPS request to the given host.SSLHandler(String host, int port) Creates a SSLHandler and redirect non-HTTPS request to the given host and port. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jooby.Route.Aware
setRouteMethods inherited from interface io.jooby.Route.Before
apply, then, thenMethods inherited from interface io.jooby.Route.Filter
then
-
Constructor Details
-
SSLHandler
Creates a SSLHandler and redirect non-HTTPS request to the given host and port.If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header, please consider to set
Router.setTrustProxy(boolean)option.- Parameters:
host- Host to redirect.port- HTTP port.
-
SSLHandler
Creates a SSLHandler and redirect non-HTTPS request to the given host.If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header, please consider to set
Router.setTrustProxy(boolean)option.- Parameters:
host- Host to redirect.
-
SSLHandler
public SSLHandler(int port) Creates a SSLHandler and redirect non-HTTPs requests to the HTTPS version of this call. Host is recreated fromHostheader orX-Forwarded-Host.If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header, please consider to set
Router.setTrustProxy(boolean)option.- Parameters:
port- HTTPS port.
-
SSLHandler
public SSLHandler()Creates a SSLHandler and redirect non-HTTPs requests to the HTTPS version of this call. Host is recreated fromHostheader.If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header, please consider to set
Router.setTrustProxy(boolean)option.
-
-
Method Details
-
apply
Description copied from interface:Route.BeforeExecute application code before next handler.- Specified by:
applyin interfaceRoute.Before- Parameters:
ctx- Web context.
-