- 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
ConstructorDescriptionCreates 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, wait
Methods inherited from interface io.jooby.Route.Aware
setRoute
Methods inherited from interface io.jooby.Route.Before
apply, then, then
Methods 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 fromHost
header 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 fromHost
header.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.Before
Execute application code before next handler.- Specified by:
apply
in interfaceRoute.Before
- Parameters:
ctx
- Web context.
-