org.springframework.http.server.reactive

Interface ServerHttpRequest

    • Method Detail

      • getId

        java.lang.String getId()
        Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.
        Since:
        5.1
        See Also:
        ServerWebExchange.getLogPrefix()
      • getPath

        RequestPath getPath()
        Returns a structured representation of the request path including the context path + path within application portions, path segments with encoded and decoded values, and path parameters.
      • getQueryParams

        MultiValueMap<java.lang.String,java.lang.String> getQueryParams()
        Return a read-only map with parsed and decoded query parameter values.
      • getCookies

        MultiValueMap<java.lang.String,HttpCookie> getCookies()
        Return a read-only map of cookies sent by the client.
      • getRemoteAddress

        @Nullable
        default java.net.InetSocketAddress getRemoteAddress()
        Return the remote address where this request is connected to, if available.
      • getSslInfo

        @Nullable
        default SslInfo getSslInfo()
        Return the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.
        Returns:
        the session information, or null if none available
        Since:
        5.0.2