public interface HttpExchange extends Closeable
BufferAllocator getBufferAllocator()
HttpExchange setStatusCode(int code)
int getStatusCode()
String getRequestHeader(String name)
name - The header nameList<String> getRequestHeaders(String name)
name - The header nameboolean containsRequestHeader(String name)
void removeRequestHeader(String name)
Collection<String> getRequestHeaderNames()
void clearRequestHeaders()
List<String> getResponseHeaders(String name)
name - The header nameboolean containsResponseHeader(String name)
void removeResponseHeader(String name)
Collection<String> getResponseHeaderNames()
void clearResponseHeaders()
String getResponseHeader(String name)
name - The header namevoid setCompletedListener(CompletedListener listener)
void setPreCommitListener(PreCommitListener listener)
default long getRequestContentLength()
-1 if it has not been setdefault long getResponseContentLength()
-1 if it has not been setdefault boolean isUpgrade()
String getRequestMethod()
String getRequestScheme()
http or https.String getRequestURI()
This is not decoded in any way, and does not include the query string.
Examples: GET http://localhost:8080/myFile.jsf?foo=bar HTTP/1.1 -> 'http://localhost:8080/myFile.jsf' POST /my+File.jsf?foo=bar HTTP/1.1 -> '/my+File.jsf'
String getProtocol()
boolean isInIoThread()
void addWriteFunction(WriteFunction listener)
OutputChannel getOutputChannel()
InputChannel getInputChannel()
InputStream getInputStream()
OutputStream getOutputStream()
void setBlockingHttpExchange(BlockingHttpExchange exchange)
InetSocketAddress getDestinationAddress()
InetSocketAddress getSourceAddress()
boolean isComplete()
boolean isRequestComplete()
boolean isResponseComplete()
void close()
close in interface AutoCloseableclose in interface Closeableio.netty.util.concurrent.EventExecutor getIoThread()
Executor getWorker()
UndertowOptionMap getUndertowOptions()
void sendContinue()
void discardRequest()
boolean isUpgradeSupported()
SSLSessionInfo getSslSessionInfo()
default boolean isPushSupported()
default boolean isRequestTrailerFieldsSupported()
boolean isIoOperationQueued()
void setMaxEntitySize(long maxEntitySize)
long getMaxEntitySize()
void setReadTimeout(long readTimeoutMs)
long getReadTimeout()
void endExchange()
long getResponseBytesSent()
Copyright © 2020 JBoss by Red Hat. All rights reserved.