public class Connectors extends Object
HttpServerExchange API.
It contains methods that logically belong on the exchange, however should only be used by connector implementations.
| Constructor and Description |
|---|
Connectors() |
| Modifier and Type | Method and Description |
|---|---|
static void |
executeRootHandler(HttpHandler handler,
HttpServerExchange exchange) |
static void |
flattenCookies(HttpServerExchange exchange)
Flattens the exchange cookie map into the response header map.
|
static boolean |
isRunningHandlerChain(HttpServerExchange exchange) |
static void |
setExchangeRequestPath(HttpServerExchange exchange,
String encodedPath,
String charset,
boolean decode,
boolean allowEncodedSlash,
StringBuilder decodeBuffer)
Deprecated.
|
static void |
setExchangeRequestPath(HttpServerExchange exchange,
String encodedPath,
String charset,
boolean decode,
boolean allowEncodedSlash,
StringBuilder decodeBuffer,
int maxParameters)
Sets the request path and query parameters, decoding to the requested charset.
|
static void |
setRequestStartTime(HttpServerExchange exchange) |
static void |
setRequestStartTime(HttpServerExchange existing,
HttpServerExchange newExchange) |
static void |
ungetRequestBytes(HttpServerExchange exchange,
io.netty.buffer.ByteBuf buffer)
Attached buffered data to the exchange.
|
public static void flattenCookies(HttpServerExchange exchange)
exchange - The server exchangepublic static boolean isRunningHandlerChain(HttpServerExchange exchange)
public static void ungetRequestBytes(HttpServerExchange exchange, io.netty.buffer.ByteBuf buffer)
exchange - The HTTP server exchangebuffer - The buffers to attachpublic static void setRequestStartTime(HttpServerExchange exchange)
public static void setRequestStartTime(HttpServerExchange existing, HttpServerExchange newExchange)
public static void executeRootHandler(HttpHandler handler, HttpServerExchange exchange)
@Deprecated public static void setExchangeRequestPath(HttpServerExchange exchange, String encodedPath, String charset, boolean decode, boolean allowEncodedSlash, StringBuilder decodeBuffer)
exchange - The exchangeencodedPath - The encoded pathcharset - The charsetpublic static void setExchangeRequestPath(HttpServerExchange exchange, String encodedPath, String charset, boolean decode, boolean allowEncodedSlash, StringBuilder decodeBuffer, int maxParameters) throws ParameterLimitException
exchange - The exchangeencodedPath - The encoded pathcharset - The charsetParameterLimitExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.