Package org.swisspush.gateleen.core.http
Class FastFailHttpServerRequest
- java.lang.Object
-
- io.vertx.core.http.impl.HttpServerRequestInternal
-
- org.swisspush.gateleen.core.http.FastFailHttpServerRequest
-
- All Implemented Interfaces:
io.vertx.core.http.HttpServerRequest,io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>,io.vertx.core.streams.StreamBase
- Direct Known Subclasses:
DummyHttpServerRequest
public abstract class FastFailHttpServerRequest extends io.vertx.core.http.impl.HttpServerRequestInternalAHttpServerRequestthrowing 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.
-
-
Constructor Summary
Constructors Constructor Description FastFailHttpServerRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringabsoluteURI()io.vertx.core.Future<io.vertx.core.buffer.Buffer>body()longbytesRead()io.vertx.core.http.HttpConnectionconnection()io.vertx.core.Contextcontext()Set<io.vertx.core.http.Cookie>cookies()Set<io.vertx.core.http.Cookie>cookies(String name)io.vertx.core.http.HttpServerRequestcustomFrameHandler(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler)io.netty.handler.codec.DecoderResultdecoderResult()io.vertx.core.Future<Void>end()io.vertx.core.http.HttpServerRequestendHandler(io.vertx.core.Handler<Void> endHandler)io.vertx.core.http.HttpServerRequestexceptionHandler(io.vertx.core.Handler<Throwable> handler)io.vertx.core.http.HttpServerRequestfetch(long amount)io.vertx.core.MultiMapformAttributes()io.vertx.core.http.CookiegetCookie(String name)io.vertx.core.http.CookiegetCookie(String name, String domain, String path)StringgetFormAttribute(String attributeName)StringgetHeader(CharSequence headerName)StringgetHeader(String headerName)StringgetParam(String paramName)io.vertx.core.http.HttpServerRequesthandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)io.vertx.core.MultiMapheaders()Stringhost()booleanisEnded()booleanisExpectMultipart()booleanisSSL()io.vertx.core.net.SocketAddresslocalAddress()io.vertx.core.http.HttpMethodmethod()Objectmetric()io.vertx.core.net.NetSocketnetSocket()io.vertx.core.MultiMapparams()Stringpath()io.vertx.core.http.HttpServerRequestpause()X509Certificate[]peerCertificateChain()Stringquery()StringrawMethod()io.vertx.core.net.SocketAddressremoteAddress()io.vertx.core.http.HttpServerResponseresponse()io.vertx.core.http.HttpServerRequestresume()Stringscheme()io.vertx.core.http.HttpServerRequestsetExpectMultipart(boolean expect)SSLSessionsslSession()io.vertx.core.http.HttpServerRequeststreamPriorityHandler(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler)io.vertx.core.Future<io.vertx.core.net.NetSocket>toNetSocket()io.vertx.core.Future<io.vertx.core.http.ServerWebSocket>toWebSocket()io.vertx.core.http.ServerWebSocketupgrade()io.vertx.core.http.HttpServerRequestuploadHandler(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> uploadHandler)Stringuri()io.vertx.core.http.HttpVersionversion()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
exceptionHandler
public io.vertx.core.http.HttpServerRequest exceptionHandler(io.vertx.core.Handler<Throwable> handler)
-
handler
public io.vertx.core.http.HttpServerRequest handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
-
pause
public io.vertx.core.http.HttpServerRequest pause()
-
resume
public io.vertx.core.http.HttpServerRequest resume()
-
fetch
public io.vertx.core.http.HttpServerRequest fetch(long amount)
-
endHandler
public io.vertx.core.http.HttpServerRequest endHandler(io.vertx.core.Handler<Void> endHandler)
-
version
public io.vertx.core.http.HttpVersion version()
-
method
public io.vertx.core.http.HttpMethod method()
-
rawMethod
public String rawMethod()
-
isSSL
public boolean isSSL()
-
scheme
public String scheme()
-
uri
public String uri()
-
path
public String path()
-
query
public String query()
-
host
public String host()
-
bytesRead
public long bytesRead()
-
response
public io.vertx.core.http.HttpServerResponse response()
-
headers
public io.vertx.core.MultiMap headers()
-
getHeader
public String getHeader(CharSequence headerName)
-
params
public io.vertx.core.MultiMap params()
-
remoteAddress
public io.vertx.core.net.SocketAddress remoteAddress()
-
localAddress
public io.vertx.core.net.SocketAddress localAddress()
-
sslSession
public SSLSession sslSession()
-
peerCertificateChain
public X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException
- Throws:
SSLPeerUnverifiedException
-
absoluteURI
public String absoluteURI()
-
netSocket
public io.vertx.core.net.NetSocket netSocket()
-
setExpectMultipart
public io.vertx.core.http.HttpServerRequest setExpectMultipart(boolean expect)
-
isExpectMultipart
public boolean isExpectMultipart()
-
uploadHandler
public io.vertx.core.http.HttpServerRequest uploadHandler(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> uploadHandler)
-
formAttributes
public io.vertx.core.MultiMap formAttributes()
-
upgrade
public io.vertx.core.http.ServerWebSocket upgrade()
-
isEnded
public boolean isEnded()
-
customFrameHandler
public io.vertx.core.http.HttpServerRequest customFrameHandler(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler)
-
connection
public io.vertx.core.http.HttpConnection connection()
-
streamPriorityHandler
public io.vertx.core.http.HttpServerRequest streamPriorityHandler(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler)
-
body
public io.vertx.core.Future<io.vertx.core.buffer.Buffer> body()
-
end
public io.vertx.core.Future<Void> end()
-
toNetSocket
public io.vertx.core.Future<io.vertx.core.net.NetSocket> toNetSocket()
-
toWebSocket
public io.vertx.core.Future<io.vertx.core.http.ServerWebSocket> toWebSocket()
-
decoderResult
public io.netty.handler.codec.DecoderResult decoderResult()
-
getCookie
public io.vertx.core.http.Cookie getCookie(String name)
-
cookies
public Set<io.vertx.core.http.Cookie> cookies()
-
context
public io.vertx.core.Context context()
- Specified by:
contextin classio.vertx.core.http.impl.HttpServerRequestInternal
-
metric
public Object metric()
- Specified by:
metricin classio.vertx.core.http.impl.HttpServerRequestInternal
-
-