public interface FastFailHttpServerRequest
extends io.vertx.core.http.HttpServerRequest
HttpServerRequest throwing an exception no matter which method got
called.
This is useful for testing. For testing inherit from this and override the
methods you need to mock.| Modifier and Type | Method and Description |
|---|---|
default String |
absoluteURI() |
default long |
bytesRead() |
default io.vertx.core.http.HttpConnection |
connection() |
default io.vertx.core.http.HttpServerRequest |
customFrameHandler(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler) |
default io.vertx.core.http.HttpServerRequest |
endHandler(io.vertx.core.Handler<Void> endHandler) |
default io.vertx.core.http.HttpServerRequest |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
default io.vertx.core.http.HttpServerRequest |
fetch(long amount) |
default io.vertx.core.MultiMap |
formAttributes() |
default String |
getFormAttribute(String attributeName) |
default String |
getHeader(CharSequence headerName) |
default String |
getHeader(String headerName) |
default String |
getParam(String paramName) |
default io.vertx.core.http.HttpServerRequest |
handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler) |
default io.vertx.core.MultiMap |
headers() |
default String |
host() |
default boolean |
isEnded() |
default boolean |
isExpectMultipart() |
default boolean |
isSSL() |
default io.vertx.core.net.SocketAddress |
localAddress() |
default io.vertx.core.http.HttpMethod |
method() |
default io.vertx.core.net.NetSocket |
netSocket() |
default io.vertx.core.MultiMap |
params() |
default String |
path() |
default io.vertx.core.http.HttpServerRequest |
pause() |
default X509Certificate[] |
peerCertificateChain() |
default String |
query() |
default String |
rawMethod() |
default io.vertx.core.net.SocketAddress |
remoteAddress() |
default io.vertx.core.http.HttpServerResponse |
response() |
default io.vertx.core.http.HttpServerRequest |
resume() |
default String |
scheme() |
default io.vertx.core.http.HttpServerRequest |
setExpectMultipart(boolean expect) |
default SSLSession |
sslSession() |
default io.vertx.core.http.HttpServerRequest |
streamPriorityHandler(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler) |
default io.vertx.core.http.ServerWebSocket |
upgrade() |
default io.vertx.core.http.HttpServerRequest |
uploadHandler(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> uploadHandler) |
default String |
uri() |
default io.vertx.core.http.HttpVersion |
version() |
static final String msg
default io.vertx.core.http.HttpServerRequest exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface io.vertx.core.http.HttpServerRequestexceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>exceptionHandler in interface io.vertx.core.streams.StreamBasedefault io.vertx.core.http.HttpServerRequest handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
handler in interface io.vertx.core.http.HttpServerRequesthandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>default io.vertx.core.http.HttpServerRequest pause()
pause in interface io.vertx.core.http.HttpServerRequestpause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>default io.vertx.core.http.HttpServerRequest resume()
resume in interface io.vertx.core.http.HttpServerRequestresume in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>default io.vertx.core.http.HttpServerRequest fetch(long amount)
fetch in interface io.vertx.core.http.HttpServerRequestfetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>default io.vertx.core.http.HttpServerRequest endHandler(io.vertx.core.Handler<Void> endHandler)
endHandler in interface io.vertx.core.http.HttpServerRequestendHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>default io.vertx.core.http.HttpVersion version()
version in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.HttpMethod method()
method in interface io.vertx.core.http.HttpServerRequestdefault String rawMethod()
rawMethod in interface io.vertx.core.http.HttpServerRequestdefault boolean isSSL()
isSSL in interface io.vertx.core.http.HttpServerRequestdefault String scheme()
scheme in interface io.vertx.core.http.HttpServerRequestdefault String uri()
uri in interface io.vertx.core.http.HttpServerRequestdefault String path()
path in interface io.vertx.core.http.HttpServerRequestdefault String query()
query in interface io.vertx.core.http.HttpServerRequestdefault String host()
host in interface io.vertx.core.http.HttpServerRequestdefault long bytesRead()
bytesRead in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.HttpServerResponse response()
response in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.MultiMap headers()
headers in interface io.vertx.core.http.HttpServerRequestdefault String getHeader(String headerName)
getHeader in interface io.vertx.core.http.HttpServerRequestdefault String getHeader(CharSequence headerName)
getHeader in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.MultiMap params()
params in interface io.vertx.core.http.HttpServerRequestdefault String getParam(String paramName)
getParam in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.net.SocketAddress remoteAddress()
remoteAddress in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.net.SocketAddress localAddress()
localAddress in interface io.vertx.core.http.HttpServerRequestdefault SSLSession sslSession()
sslSession in interface io.vertx.core.http.HttpServerRequestdefault X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException
peerCertificateChain in interface io.vertx.core.http.HttpServerRequestSSLPeerUnverifiedExceptiondefault String absoluteURI()
absoluteURI in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.net.NetSocket netSocket()
netSocket in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.HttpServerRequest setExpectMultipart(boolean expect)
setExpectMultipart in interface io.vertx.core.http.HttpServerRequestdefault boolean isExpectMultipart()
isExpectMultipart in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.HttpServerRequest uploadHandler(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> uploadHandler)
uploadHandler in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.MultiMap formAttributes()
formAttributes in interface io.vertx.core.http.HttpServerRequestdefault String getFormAttribute(String attributeName)
getFormAttribute in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.ServerWebSocket upgrade()
upgrade in interface io.vertx.core.http.HttpServerRequestdefault boolean isEnded()
isEnded in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.HttpServerRequest customFrameHandler(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler)
customFrameHandler in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.HttpConnection connection()
connection in interface io.vertx.core.http.HttpServerRequestdefault io.vertx.core.http.HttpServerRequest streamPriorityHandler(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler)
streamPriorityHandler in interface io.vertx.core.http.HttpServerRequestCopyright © 2016–2021. All rights reserved.