Class ForwardedServerRequestWrapper

  • All Implemented Interfaces:
    io.vertx.core.http.HttpServerRequest, io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, io.vertx.core.streams.StreamBase

    class ForwardedServerRequestWrapper
    extends io.vertx.core.http.impl.HttpServerRequestWrapper
    implements io.vertx.core.http.HttpServerRequest
    • Constructor Detail

      • ForwardedServerRequestWrapper

        ForwardedServerRequestWrapper​(io.vertx.core.http.HttpServerRequest request,
                                      ForwardingProxyOptions forwardingProxyOptions,
                                      TrustedProxyCheck trustedProxyCheck)
    • Method Detail

      • changeTo

        void changeTo​(io.vertx.core.http.HttpMethod method,
                      String uri)
      • bytesRead

        public long bytesRead()
        Specified by:
        bytesRead in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        bytesRead in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • exceptionHandler

        public 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
        Overrides:
        exceptionHandler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • handler

        public 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>
        Overrides:
        handler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • pause

        public 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>
        Overrides:
        pause in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • resume

        public 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>
        Overrides:
        resume in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • fetch

        public 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>
        Overrides:
        fetch in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • endHandler

        public io.vertx.core.http.HttpServerRequest endHandler​(io.vertx.core.Handler<Void> handler)
        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>
        Overrides:
        endHandler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • version

        public io.vertx.core.http.HttpVersion version()
        Specified by:
        version in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        version in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • method

        public io.vertx.core.http.HttpMethod method()
        Specified by:
        method in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        method in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • uri

        public String uri()
        Specified by:
        uri in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        uri in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • path

        public String path()
        Specified by:
        path in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        path in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • query

        public String query()
        Specified by:
        query in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        query in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • response

        public io.vertx.core.http.HttpServerResponse response()
        Specified by:
        response in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        response in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • headers

        public io.vertx.core.MultiMap headers()
        Specified by:
        headers in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        headers in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getHeader

        public String getHeader​(String s)
        Specified by:
        getHeader in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getHeader in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getHeader

        public String getHeader​(CharSequence charSequence)
        Specified by:
        getHeader in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getHeader in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • params

        public io.vertx.core.MultiMap params()
        Specified by:
        params in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        params in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getParam

        public String getParam​(String s)
        Specified by:
        getParam in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getParam in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • remoteAddress

        public io.vertx.core.net.SocketAddress remoteAddress()
        Specified by:
        remoteAddress in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        remoteAddress in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • localAddress

        public io.vertx.core.net.SocketAddress localAddress()
        Specified by:
        localAddress in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        localAddress in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • sslSession

        public SSLSession sslSession()
        Specified by:
        sslSession in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        sslSession in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • absoluteURI

        public String absoluteURI()
        Specified by:
        absoluteURI in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        absoluteURI in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • scheme

        public String scheme()
        Specified by:
        scheme in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        scheme in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • host

        public String host()
        Specified by:
        host in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        host in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • customFrameHandler

        public 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
        Overrides:
        customFrameHandler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • connection

        public io.vertx.core.http.HttpConnection connection()
        Specified by:
        connection in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        connection in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • bodyHandler

        public io.vertx.core.http.HttpServerRequest bodyHandler​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
        Specified by:
        bodyHandler in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        bodyHandler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • setExpectMultipart

        public io.vertx.core.http.HttpServerRequest setExpectMultipart​(boolean b)
        Specified by:
        setExpectMultipart in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        setExpectMultipart in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • isExpectMultipart

        public boolean isExpectMultipart()
        Specified by:
        isExpectMultipart in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        isExpectMultipart in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • uploadHandler

        public io.vertx.core.http.HttpServerRequest uploadHandler​(io.vertx.core.Handler<io.vertx.core.http.HttpServerFileUpload> handler)
        Specified by:
        uploadHandler in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        uploadHandler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • formAttributes

        public io.vertx.core.MultiMap formAttributes()
        Specified by:
        formAttributes in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        formAttributes in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getFormAttribute

        public String getFormAttribute​(String s)
        Specified by:
        getFormAttribute in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getFormAttribute in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • isEnded

        public boolean isEnded()
        Specified by:
        isEnded in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        isEnded in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • isSSL

        public boolean isSSL()
        Specified by:
        isSSL in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        isSSL in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • streamPriorityHandler

        public 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
        Overrides:
        streamPriorityHandler in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • streamPriority

        public io.vertx.core.http.StreamPriority streamPriority()
        Specified by:
        streamPriority in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        streamPriority in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getCookie

        public io.vertx.core.http.Cookie getCookie​(String name)
        Specified by:
        getCookie in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getCookie in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • cookieCount

        public int cookieCount()
        Specified by:
        cookieCount in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        cookieCount in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • cookieMap

        @Deprecated
        public Map<String,​io.vertx.core.http.Cookie> cookieMap()
        Deprecated.
        Specified by:
        cookieMap in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        cookieMap in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getCookie

        public io.vertx.core.http.Cookie getCookie​(String name,
                                                   String domain,
                                                   String path)
        Specified by:
        getCookie in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getCookie in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • cookies

        public Set<io.vertx.core.http.Cookie> cookies​(String name)
        Specified by:
        cookies in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        cookies in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • cookies

        public Set<io.vertx.core.http.Cookie> cookies()
        Specified by:
        cookies in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        cookies in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • body

        public io.vertx.core.http.HttpServerRequest body​(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)
        Specified by:
        body in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        body in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • body

        public io.vertx.core.Future<io.vertx.core.buffer.Buffer> body()
        Specified by:
        body in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        body in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • end

        public void end​(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
        Specified by:
        end in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        end in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • end

        public io.vertx.core.Future<Void> end()
        Specified by:
        end in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        end in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • toNetSocket

        public void toNetSocket​(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetSocket>> handler)
        Specified by:
        toNetSocket in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        toNetSocket in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • toNetSocket

        public io.vertx.core.Future<io.vertx.core.net.NetSocket> toNetSocket()
        Specified by:
        toNetSocket in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        toNetSocket in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • toWebSocket

        public void toWebSocket​(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.ServerWebSocket>> handler)
        Specified by:
        toWebSocket in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        toWebSocket in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • toWebSocket

        public io.vertx.core.Future<io.vertx.core.http.ServerWebSocket> toWebSocket()
        Specified by:
        toWebSocket in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        toWebSocket in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • context

        public io.vertx.core.Context context()
        Overrides:
        context in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • metric

        public Object metric()
        Overrides:
        metric in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • decoderResult

        public io.netty.handler.codec.DecoderResult decoderResult()
        Specified by:
        decoderResult in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        decoderResult in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • setParamsCharset

        public io.vertx.core.http.HttpServerRequest setParamsCharset​(String charset)
        Specified by:
        setParamsCharset in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        setParamsCharset in class io.vertx.core.http.impl.HttpServerRequestWrapper
      • getParamsCharset

        public String getParamsCharset()
        Specified by:
        getParamsCharset in interface io.vertx.core.http.HttpServerRequest
        Overrides:
        getParamsCharset in class io.vertx.core.http.impl.HttpServerRequestWrapper