public class RedirectBuilder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static String |
redirect(HttpServerExchange exchange,
String newRelativePath) |
Redirects to a new relative path.
|
static String |
redirect(HttpServerExchange exchange,
String newRelativePath,
boolean includeParameters) |
Redirects to a new relative path.
|
public static final String UTF_8
public static String redirect(HttpServerExchange exchange, String newRelativePath)
exchange - The HTTP server exchangenewRelativePath - The new relative pathpublic static String redirect(HttpServerExchange exchange, String newRelativePath, boolean includeParameters)
exchange - The HTTP server exchangenewRelativePath - The new relative pathincludeParameters - If query and path parameters from the exchange should be includedCopyright © 2018. All rights reserved.