public class StatusCodeTranslator extends Object
| Constructor and Description |
|---|
StatusCodeTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static io.vertx.core.MultiMap |
getTranslateFreeHeaders(io.vertx.core.MultiMap headers)
Creates a new MultiMap based on the given headers but
without any 'x-translate-status-xxx' entries.
|
static int |
translateStatusCode(int statusCode,
io.vertx.core.MultiMap headers)
Checks if there exists a handling for the given
statusCode in the
headers of the request. |
public static int translateStatusCode(int statusCode,
io.vertx.core.MultiMap headers)
statusCode in the
headers of the request. The header is checked for a pattern matching x-translate-status-
and the given statusCode.statusCode - the original status codeheaders - the headers of the requestpublic static io.vertx.core.MultiMap getTranslateFreeHeaders(io.vertx.core.MultiMap headers)
headers - original headersCopyright © 2016–2017. All rights reserved.