public class RedirectBuilder
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
UTF_8 |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
redirect(HttpServerExchange exchange,
java.lang.String newRelativePath) |
Redirects to a new relative path.
|
static java.lang.String |
redirect(HttpServerExchange exchange,
java.lang.String newRelativePath,
boolean includeParameters) |
Redirects to a new relative path.
|
public static java.lang.String redirect(HttpServerExchange exchange, java.lang.String newRelativePath)
exchange - The HTTP server exchangenewRelativePath - The new relative pathpublic static java.lang.String redirect(HttpServerExchange exchange, java.lang.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.