Interface FastFailHttpServerRequest

  • All Superinterfaces:
    io.vertx.core.http.HttpServerRequest, io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, io.vertx.core.streams.StreamBase
    All Known Implementing Classes:
    DummyHttpServerRequest

    public interface FastFailHttpServerRequest
    extends io.vertx.core.http.HttpServerRequest
    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.
    • Method Detail

      • exceptionHandler

        default io.vertx.core.http.HttpServerRequest exceptionHandler​(io.vertx.core.Handler<Throwable> handler)
        Specified by:
        exceptionHandler in interface io.vertx.core.http.HttpServerRequest
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.StreamBase
      • handler

        default io.vertx.core.http.HttpServerRequest handler​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
        Specified by:
        handler in interface io.vertx.core.http.HttpServerRequest
        Specified by:
        handler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • pause

        default io.vertx.core.http.HttpServerRequest pause()
        Specified by:
        pause in interface io.vertx.core.http.HttpServerRequest
        Specified by:
        pause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • resume

        default io.vertx.core.http.HttpServerRequest resume()
        Specified by:
        resume in interface io.vertx.core.http.HttpServerRequest
        Specified by:
        resume in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • fetch

        default io.vertx.core.http.HttpServerRequest fetch​(long amount)
        Specified by:
        fetch in interface io.vertx.core.http.HttpServerRequest
        Specified by:
        fetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • endHandler

        default io.vertx.core.http.HttpServerRequest endHandler​(io.vertx.core.Handler<Void> endHandler)
        Specified by:
        endHandler in interface io.vertx.core.http.HttpServerRequest
        Specified by:
        endHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      • version

        default io.vertx.core.http.HttpVersion version()
        Specified by:
        version in interface io.vertx.core.http.HttpServerRequest
      • method

        default io.vertx.core.http.HttpMethod method()
        Specified by:
        method in interface io.vertx.core.http.HttpServerRequest
      • rawMethod

        default String rawMethod()
        Specified by:
        rawMethod in interface io.vertx.core.http.HttpServerRequest
      • isSSL

        default boolean isSSL()
        Specified by:
        isSSL in interface io.vertx.core.http.HttpServerRequest
      • scheme

        default String scheme()
        Specified by:
        scheme in interface io.vertx.core.http.HttpServerRequest
      • uri

        default String uri()
        Specified by:
        uri in interface io.vertx.core.http.HttpServerRequest
      • path

        default String path()
        Specified by:
        path in interface io.vertx.core.http.HttpServerRequest
      • query

        default String query()
        Specified by:
        query in interface io.vertx.core.http.HttpServerRequest
      • host

        default String host()
        Specified by:
        host in interface io.vertx.core.http.HttpServerRequest
      • bytesRead

        default long bytesRead()
        Specified by:
        bytesRead in interface io.vertx.core.http.HttpServerRequest
      • response

        default io.vertx.core.http.HttpServerResponse response()
        Specified by:
        response in interface io.vertx.core.http.HttpServerRequest
      • headers

        default io.vertx.core.MultiMap headers()
        Specified by:
        headers in interface io.vertx.core.http.HttpServerRequest
      • getHeader

        default String getHeader​(String headerName)
        Specified by:
        getHeader in interface io.vertx.core.http.HttpServerRequest
      • getHeader

        default String getHeader​(CharSequence headerName)
        Specified by:
        getHeader in interface io.vertx.core.http.HttpServerRequest
      • params

        default io.vertx.core.MultiMap params()
        Specified by:
        params in interface io.vertx.core.http.HttpServerRequest
      • getParam

        default String getParam​(String paramName)
        Specified by:
        getParam in interface io.vertx.core.http.HttpServerRequest
      • remoteAddress

        default io.vertx.core.net.SocketAddress remoteAddress()
        Specified by:
        remoteAddress in interface io.vertx.core.http.HttpServerRequest
      • localAddress

        default io.vertx.core.net.SocketAddress localAddress()
        Specified by:
        localAddress in interface io.vertx.core.http.HttpServerRequest
      • sslSession

        default SSLSession sslSession()
        Specified by:
        sslSession in interface io.vertx.core.http.HttpServerRequest
      • absoluteURI

        default String absoluteURI()
        Specified by:
        absoluteURI in interface io.vertx.core.http.HttpServerRequest
      • netSocket

        default io.vertx.core.net.NetSocket netSocket()
        Specified by:
        netSocket in interface io.vertx.core.http.HttpServerRequest
      • setExpectMultipart

        default io.vertx.core.http.HttpServerRequest setExpectMultipart​(boolean expect)
        Specified by:
        setExpectMultipart in interface io.vertx.core.http.HttpServerRequest
      • isExpectMultipart

        default boolean isExpectMultipart()
        Specified by:
        isExpectMultipart in interface io.vertx.core.http.HttpServerRequest
      • uploadHandler

        default io.vertx.core.http.HttpServerRequest uploadHandler​(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> uploadHandler)
        Specified by:
        uploadHandler in interface io.vertx.core.http.HttpServerRequest
      • formAttributes

        default io.vertx.core.MultiMap formAttributes()
        Specified by:
        formAttributes in interface io.vertx.core.http.HttpServerRequest
      • getFormAttribute

        default String getFormAttribute​(String attributeName)
        Specified by:
        getFormAttribute in interface io.vertx.core.http.HttpServerRequest
      • upgrade

        default io.vertx.core.http.ServerWebSocket upgrade()
        Specified by:
        upgrade in interface io.vertx.core.http.HttpServerRequest
      • isEnded

        default boolean isEnded()
        Specified by:
        isEnded in interface io.vertx.core.http.HttpServerRequest
      • customFrameHandler

        default io.vertx.core.http.HttpServerRequest customFrameHandler​(io.vertx.core.Handler<io.vertx.core.http.HttpFrame> handler)
        Specified by:
        customFrameHandler in interface io.vertx.core.http.HttpServerRequest
      • connection

        default io.vertx.core.http.HttpConnection connection()
        Specified by:
        connection in interface io.vertx.core.http.HttpServerRequest
      • streamPriorityHandler

        default io.vertx.core.http.HttpServerRequest streamPriorityHandler​(io.vertx.core.Handler<io.vertx.core.http.StreamPriority> handler)
        Specified by:
        streamPriorityHandler in interface io.vertx.core.http.HttpServerRequest