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 org.xnio.channels.StreamSourceChannel |
getExistingRequestChannel(HttpServerExchange exchange)
Returns the existing request channel, if it exists.
|
static void |
setRequestStartTime(HttpServerExchange exchange) |
static void |
terminateRequest(HttpServerExchange exchange) |
static void |
terminateResponse(HttpServerExchange exchange) |
static void |
ungetRequestBytes(HttpServerExchange exchange,
org.xnio.Pooled<ByteBuffer>... buffers)
Attached buffered data to the exchange.
|
public static void flattenCookies(HttpServerExchange exchange)
exchange
- The server exchangepublic static void ungetRequestBytes(HttpServerExchange exchange, org.xnio.Pooled<ByteBuffer>... buffers)
exchange
- The HTTP server exchangebuffers
- The buffers to attachpublic static void terminateRequest(HttpServerExchange exchange)
public static void terminateResponse(HttpServerExchange exchange)
public static void setRequestStartTime(HttpServerExchange exchange)
public static void executeRootHandler(HttpHandler handler, HttpServerExchange exchange)
public static org.xnio.channels.StreamSourceChannel getExistingRequestChannel(HttpServerExchange exchange)
exchange
- The http server exchangeCopyright © 2014 JBoss by Red Hat. All rights reserved.