public class VertxHttpExchange extends HttpExchangeBase implements HttpExchange, InputChannel, OutputChannel, io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
preCommitListener| Constructor and Description |
|---|
VertxHttpExchange(io.vertx.core.http.HttpServerRequest request,
BufferAllocator allocator,
Executor worker,
Object context) |
VertxHttpExchange(io.vertx.core.http.HttpServerRequest request,
BufferAllocator allocator,
Executor worker,
Object context,
io.vertx.core.buffer.Buffer existingBody) |
addWriteFunction, endExchange, getInputStream, getOutputChannel, getOutputStream, getResponseBytesSent, isComplete, isRequestComplete, isRequestEntityBodyAllowed, isResponseComplete, isResponseEntityBodyAllowed, isResponseStarted, setBlockingHttpExchange, setCompletedListener, setPreCommitListener, terminateRequest, terminateResponse, writeAsync, writeAsync, writeAsync, writeAsync, writeBlockingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWriteFunction, endExchange, getInputStream, getOutputChannel, getOutputStream, getRequestContentLength, getResponseBytesSent, getResponseContentLength, isComplete, isRequestComplete, isRequestTrailerFieldsSupported, isResponseComplete, isUpgrade, setBlockingHttpExchange, setCompletedListener, setPreCommitListenerwriteAsync, writeAsync, writeAsync, writeAsync, writeBlockingpublic VertxHttpExchange(io.vertx.core.http.HttpServerRequest request,
BufferAllocator allocator,
Executor worker,
Object context)
public VertxHttpExchange(io.vertx.core.http.HttpServerRequest request,
BufferAllocator allocator,
Executor worker,
Object context,
io.vertx.core.buffer.Buffer existingBody)
public io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> getPushHandler()
public VertxHttpExchange setPushHandler(io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> pushHandler)
public BufferAllocator getBufferAllocator()
getBufferAllocator in interface HttpExchangepublic HttpExchange setStatusCode(int code)
setStatusCode in interface HttpExchangepublic int getStatusCode()
getStatusCode in interface HttpExchangepublic String getRequestHeader(String name)
getRequestHeader in interface HttpExchangepublic List<String> getRequestHeaders(String name)
getRequestHeaders in interface HttpExchangepublic boolean containsRequestHeader(String name)
containsRequestHeader in interface HttpExchangepublic void removeRequestHeader(String name)
removeRequestHeader in interface HttpExchangepublic void setRequestHeader(String name, String value)
setRequestHeader in interface HttpExchangepublic Collection<String> getRequestHeaderNames()
getRequestHeaderNames in interface HttpExchangepublic void addRequestHeader(String name, String value)
addRequestHeader in interface HttpExchangepublic void clearRequestHeaders()
clearRequestHeaders in interface HttpExchangepublic List<String> getResponseHeaders(String name)
getResponseHeaders in interface HttpExchangepublic boolean containsResponseHeader(String name)
containsResponseHeader in interface HttpExchangepublic Object getContext()
public void removeResponseHeader(String name)
removeResponseHeader in interface HttpExchangepublic void setResponseHeader(String name, String value)
setResponseHeader in interface HttpExchangepublic Collection<String> getResponseHeaderNames()
getResponseHeaderNames in interface HttpExchangepublic void addResponseHeader(String name, String value)
addResponseHeader in interface HttpExchangepublic void clearResponseHeaders()
clearResponseHeaders in interface HttpExchangepublic String getResponseHeader(String name)
getResponseHeader in interface HttpExchangepublic String getRequestMethod()
getRequestMethod in interface HttpExchangepublic String getRequestScheme()
getRequestScheme in interface HttpExchangepublic String getRequestURI()
getRequestURI in interface HttpExchangepublic String getProtocol()
getProtocol in interface HttpExchangepublic boolean isInIoThread()
isInIoThread in interface HttpExchangepublic InputChannel getInputChannel()
getInputChannel in interface HttpExchangepublic InetSocketAddress getDestinationAddress()
getDestinationAddress in interface HttpExchangepublic InetSocketAddress getSourceAddress()
getSourceAddress in interface HttpExchangepublic io.netty.buffer.ByteBuf readAsync()
throws IOException
readAsync in interface InputChannelIOExceptionpublic boolean isReadable()
isReadable in interface InputChannelpublic <T> void setReadHandler(BiConsumer<InputChannel,T> handler, T context)
setReadHandler in interface InputChannelpublic int readBytesAvailable()
readBytesAvailable in interface InputChannelpublic io.netty.buffer.ByteBuf readBlocking()
throws IOException
readBlocking in interface InputChannelIOExceptionpublic void close()
close in interface HttpExchangeclose in interface Closeableclose in interface AutoCloseablepublic io.netty.util.concurrent.EventExecutor getIoThread()
getIoThread in interface HttpExchangepublic void writeBlocking0(io.netty.buffer.ByteBuf data,
boolean last)
throws IOException
writeBlocking0 in class HttpExchangeBaseIOExceptionpublic <T> void writeAsync0(io.netty.buffer.ByteBuf data,
boolean last,
IoCallback<T> callback,
T context)
writeAsync0 in class HttpExchangeBasepublic void handle(io.vertx.core.buffer.Buffer event)
handle in interface io.vertx.core.Handler<io.vertx.core.buffer.Buffer>public Executor getWorker()
getWorker in interface HttpExchangepublic UndertowOptionMap getUndertowOptions()
getUndertowOptions in interface HttpExchangepublic void sendContinue()
sendContinue in interface HttpExchangepublic void discardRequest()
discardRequest in interface HttpExchangepublic boolean isUpgradeSupported()
isUpgradeSupported in interface HttpExchangepublic SSLSessionInfo getSslSessionInfo()
getSslSessionInfo in interface HttpExchangepublic boolean isPushSupported()
isPushSupported in interface HttpExchangepublic void pushResource(String path, String method, Map<String,List<String>> requestHeaders)
pushResource in interface HttpExchangepublic boolean isIoOperationQueued()
isIoOperationQueued in interface HttpExchangepublic void setMaxEntitySize(long maxEntitySize)
setMaxEntitySize in interface HttpExchangepublic long getMaxEntitySize()
getMaxEntitySize in interface HttpExchangepublic void setReadTimeout(long readTimeoutMs)
setReadTimeout in interface HttpExchangepublic long getReadTimeout()
getReadTimeout in interface HttpExchangepublic void setUpgradeListener(Consumer<Object> listener)
setUpgradeListener in interface HttpExchangeCopyright © 2020 JBoss by Red Hat. All rights reserved.