Package io.undertow.server
Class Connectors
java.lang.Object
io.undertow.server.Connectors
This class provides the connector part of the
HttpServerExchange API.
It contains methods that logically belong on the exchange, however should only be used by connector implementations.
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteRootHandler(HttpHandler handler, HttpServerExchange exchange) static voidflattenCookies(HttpServerExchange exchange) Flattens the exchange cookie map into the response header map.static booleanisRunningHandlerChain(HttpServerExchange exchange) static voidsetExchangeRequestPath(HttpServerExchange exchange, String encodedPath, String charset, boolean decode, boolean allowEncodedSlash, StringBuilder decodeBuffer) Deprecated.static voidsetExchangeRequestPath(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 voidsetRequestStartTime(HttpServerExchange exchange) static voidsetRequestStartTime(HttpServerExchange existing, HttpServerExchange newExchange) static voidungetRequestBytes(HttpServerExchange exchange, io.netty.buffer.ByteBuf buffer) Attached buffered data to the exchange.
-
Constructor Details
-
Connectors
public Connectors()
-
-
Method Details
-
flattenCookies
Flattens the exchange cookie map into the response header map. This should be called by a connector just before the response is started.- Parameters:
exchange- The server exchange
-
isRunningHandlerChain
-
ungetRequestBytes
Attached buffered data to the exchange. The will generally be used to allow data to be re-read.- Parameters:
exchange- The HTTP server exchangebuffer- The buffers to attach
-
setRequestStartTime
-
setRequestStartTime
-
executeRootHandler
-
setExchangeRequestPath
@Deprecated public static void setExchangeRequestPath(HttpServerExchange exchange, String encodedPath, String charset, boolean decode, boolean allowEncodedSlash, StringBuilder decodeBuffer) Deprecated.Sets the request path and query parameters, decoding to the requested charset.- Parameters:
exchange- The exchangeencodedPath- The encoded pathcharset- The charset
-
setExchangeRequestPath
public static void setExchangeRequestPath(HttpServerExchange exchange, String encodedPath, String charset, boolean decode, boolean allowEncodedSlash, StringBuilder decodeBuffer, int maxParameters) throws ParameterLimitException Sets the request path and query parameters, decoding to the requested charset.- Parameters:
exchange- The exchangeencodedPath- The encoded pathcharset- The charset- Throws:
ParameterLimitException
-