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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String msg  
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.lang.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<java.lang.Void> endHandler)  
      default io.vertx.core.http.HttpServerRequest exceptionHandler​(io.vertx.core.Handler<java.lang.Throwable> handler)  
      default io.vertx.core.http.HttpServerRequest fetch​(long amount)  
      default io.vertx.core.MultiMap formAttributes()  
      default java.lang.String getFormAttribute​(java.lang.String attributeName)  
      default java.lang.String getHeader​(java.lang.CharSequence headerName)  
      default java.lang.String getHeader​(java.lang.String headerName)  
      default java.lang.String getParam​(java.lang.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 java.lang.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 java.lang.String path()  
      default io.vertx.core.http.HttpServerRequest pause()  
      default javax.security.cert.X509Certificate[] peerCertificateChain()  
      default java.lang.String query()  
      default java.lang.String rawMethod()  
      default io.vertx.core.net.SocketAddress remoteAddress()  
      default io.vertx.core.http.HttpServerResponse response()  
      default io.vertx.core.http.HttpServerRequest resume()  
      default java.lang.String scheme()  
      default io.vertx.core.http.HttpServerRequest setExpectMultipart​(boolean expect)  
      default javax.net.ssl.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 java.lang.String uri()  
      default io.vertx.core.http.HttpVersion version()  
      • Methods inherited from interface io.vertx.core.http.HttpServerRequest

        bodyHandler, streamPriority
    • Method Detail

      • exceptionHandler

        default io.vertx.core.http.HttpServerRequest exceptionHandler​(io.vertx.core.Handler<java.lang.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<java.lang.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 java.lang.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 java.lang.String scheme()
        Specified by:
        scheme in interface io.vertx.core.http.HttpServerRequest
      • uri

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

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

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

        default java.lang.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 java.lang.String getHeader​(java.lang.String headerName)
        Specified by:
        getHeader in interface io.vertx.core.http.HttpServerRequest
      • getHeader

        default java.lang.String getHeader​(java.lang.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 java.lang.String getParam​(java.lang.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 javax.net.ssl.SSLSession sslSession()
        Specified by:
        sslSession in interface io.vertx.core.http.HttpServerRequest
      • peerCertificateChain

        default javax.security.cert.X509Certificate[] peerCertificateChain()
                                                                    throws javax.net.ssl.SSLPeerUnverifiedException
        Specified by:
        peerCertificateChain in interface io.vertx.core.http.HttpServerRequest
        Throws:
        javax.net.ssl.SSLPeerUnverifiedException
      • absoluteURI

        default java.lang.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 java.lang.String getFormAttribute​(java.lang.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