java.lang.Object
dev.katsute.simplehttpserver.handler.RedirectHandler
- All Implemented Interfaces:
HttpHandler
Redirects a request to a different URL.
- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- Katsute
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RedirectHandler
Creates a redirect to a URL.- Parameters:
link
- URL to redirect to- Since:
- 5.0.0
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceHttpHandler
- Throws:
IOException
-
toString
-