public class HttpContinue extends Object
Note that if a client is pipelining some requests and sending continue for others this could cause problems if the pipelining buffer is enabled.
Modifier and Type | Class and Description |
---|---|
static interface |
HttpContinue.ContinueResponseSender
A continue response that is in the process of being sent.
|
Constructor and Description |
---|
HttpContinue() |
Modifier and Type | Method and Description |
---|---|
static HttpContinue.ContinueResponseSender |
createResponseSender(HttpServerExchange exchange)
Creates a response sender that can be used to send a HTTP 100-continue response.
|
static void |
rejectExchange(HttpServerExchange exchange)
Sets a 417 response code and ends the exchange.
|
static boolean |
requiresContinueResponse(HeaderMap requestHeaders) |
static boolean |
requiresContinueResponse(HttpServerExchange exchange)
Returns true if this exchange requires the server to send a 100 (Continue) response.
|
static void |
sendContinueResponse(HttpServerExchange exchange,
IoCallback callback)
Sends a continuation using async IO, and calls back when it is complete.
|
static void |
sendContinueResponseBlocking(HttpServerExchange exchange)
Sends a continue response using blocking IO
|
public static final String CONTINUE
public static boolean requiresContinueResponse(HttpServerExchange exchange)
exchange
- The exchangetrue
if the server needs to send a continue responsepublic static boolean requiresContinueResponse(HeaderMap requestHeaders)
public static void sendContinueResponse(HttpServerExchange exchange, IoCallback callback)
exchange
- The exchangecallback
- The completion callbackpublic static HttpContinue.ContinueResponseSender createResponseSender(HttpServerExchange exchange) throws IOException
exchange
- The exchangeIOException
public static void sendContinueResponseBlocking(HttpServerExchange exchange) throws IOException
exchange
- The exchangeIOException
public static void rejectExchange(HttpServerExchange exchange)
exchange
- The exchange to rejectCopyright © 2016 JBoss by Red Hat. All rights reserved.