public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
endExchange(io.undertow.server.HttpServerExchange exchange,
int statusCode)
Changes the status code of the response and ends the exchange.
|
static void |
endExchange(io.undertow.server.HttpServerExchange exchange,
int statusCode,
String reasonPhrase)
Changes the status code of the response, sets the HTTP reason phrase and ends the exchange.
|
public static void endExchange(io.undertow.server.HttpServerExchange exchange,
int statusCode)
exchange - the HTTP server request/response exchangestatusCode - the HTTP status codeHttpServerExchange.setStatusCode(int),
HttpServerExchange.endExchange()public static void endExchange(io.undertow.server.HttpServerExchange exchange,
int statusCode,
String reasonPhrase)
exchange - the HTTP server request/response exchangestatusCode - the HTTP status codereasonPhrase - the HTTP status messageHttpServerExchange.setStatusCode(int),
HttpServerExchange.setReasonPhrase(String),
HttpServerExchange.endExchange()Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.