Class 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.HttpServerRequestInternal
    A 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.
    • Constructor Detail

      • FastFailHttpServerRequest

        public FastFailHttpServerRequest()
    • 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()
      • query

        public String query()
      • bytesRead

        public long bytesRead()
      • response

        public io.vertx.core.http.HttpServerResponse response()
      • headers

        public io.vertx.core.MultiMap headers()
      • getHeader

        public String getHeader​(String headerName)
      • params

        public io.vertx.core.MultiMap params()
      • remoteAddress

        public io.vertx.core.net.SocketAddress remoteAddress()
      • localAddress

        public io.vertx.core.net.SocketAddress localAddress()
      • 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()
      • getFormAttribute

        public String getFormAttribute​(String attributeName)
      • 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)
      • getCookie

        public io.vertx.core.http.Cookie getCookie​(String name,
                                                   String domain,
                                                   String path)
      • cookies

        public Set<io.vertx.core.http.Cookie> cookies​(String name)
      • cookies

        public Set<io.vertx.core.http.Cookie> cookies()
      • context

        public io.vertx.core.Context context()
        Specified by:
        context in class io.vertx.core.http.impl.HttpServerRequestInternal
      • metric

        public Object metric()
        Specified by:
        metric in class io.vertx.core.http.impl.HttpServerRequestInternal