Available Methods
- getAttachment ( )
- setStatusCode ( )
- endExchange ( )
- putAttachment ( )
- dispatch ( )
- getRequestHeaders ( )
- setRelativePath ( )
- getResponseHeaders ( )
- addExchangeCompleteListener ( )
- addPathParam ( )
- startBlocking ( )
- getQueryParameters ( )
- getRelativePath ( )
- getStatusCode ( )
- isInIoThread ( )
- setRequestScheme ( )
- setRequestURI ( )
- setResolvedPath ( )
- setPersistent ( )
- isResponseChannelAvailable ( )
- getRequestURI ( )
- setResponseHeader ( )
- getQueryString ( )
- setRequestPath ( )
- setSourceAddress ( )
- getHostName ( )
- getSecurityContext ( )
- isResponseStarted ( )
- getRequestScheme ( )
- removeAttachment ( )
- getRequestMethod ( )
- getSslSessionInfo ( )
- allocateBuffer ( )
- writeAsync ( )
- setResponseCookie ( )
- addQueryParam ( )
- getRequestURL ( )
- getRequestHeader ( )
- getInputStream ( )
- addDefaultResponseListener ( )
- getResponseContentLength ( )
- addResponseCommitListener ( )
- setMaxEntitySize ( )
- addResponseWrapper ( )
- getHostPort ( )
- addResponseHeader ( )
- setReasonPhrase ( )
- getResponseSender ( )
- getRequestChannel ( )
- isPersistent ( )
- getRequestCookies ( )
- setDestinationAddress ( )
- getRequestStartTime ( )
- isHostIncludedInRequestURI ( )
- setQueryString ( )
- getRequestPath ( )
- addRequestWrapper ( )
- getRequestContentLength ( )
- isComplete ( )
Related Classes
- java.util.Collections
- java.io.InputStream
- java.util.Date
- java.util.concurrent.TimeUnit
- java.net.URI
- java.nio.ByteBuffer
- org.junit.Assert
- java.util.Optional
- java.nio.charset.StandardCharsets
- javax.servlet.http.HttpServletRequest
- java.util.TreeMap
- javax.servlet.http.HttpServletResponse
- org.apache.commons.lang3.StringUtils
- org.junit.BeforeClass
- java.net.InetSocketAddress
- javax.servlet.ServletException
- java.util.Deque
- com.google.gson.JsonObject
- javax.servlet.ServletRequest
- javax.servlet.DispatcherType
- io.undertow.server.HttpHandler
- com.hazelcast.core.IMap
- io.undertow.UndertowOptions
- io.undertow.Handlers
- io.undertow.util.HttpString
Java Code Examples for io.undertow.server.HttpServerExchange#setReasonPhrase()
The following examples show how to use
io.undertow.server.HttpServerExchange#setReasonPhrase() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ResponseReasonPhraseAttribute.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public void writeAttribute(final HttpServerExchange exchange, final String newValue) throws ReadOnlyAttributeException { exchange.setReasonPhrase(newValue); }
Example 2
Source File: HttpContexts.java From thorntail with Apache License 2.0 | 4 votes |
private void noHealthEndpoints(HttpServerExchange exchange) { exchange.setStatusCode(204); exchange.setReasonPhrase("No health endpoints configured!"); }
Example 3
Source File: Utils.java From hawkular-metrics with Apache License 2.0 | 3 votes |
/** * Changes the status code of the response, sets the HTTP reason phrase and ends the exchange. * * @param exchange the HTTP server request/response exchange * @param statusCode the HTTP status code * @param reasonPhrase the HTTP status message * * @see HttpServerExchange#setStatusCode(int) * @see HttpServerExchange#setReasonPhrase(String) * @see HttpServerExchange#endExchange() */ public static void endExchange(HttpServerExchange exchange, int statusCode, String reasonPhrase) { exchange.setStatusCode(statusCode); if (reasonPhrase != null) { exchange.setReasonPhrase(reasonPhrase); } exchange.endExchange(); }