类 AbstractServerHttpRequest

    • 字段详细资料

    • 构造器详细资料

      • AbstractServerHttpRequest

        public AbstractServerHttpRequest​(URI uri,
                                         @Nullable
                                         String contextPath,
                                         HttpHeaders headers)
        Constructor with the URI and headers for the request.
        参数:
        uri - the URI for the request
        contextPath - the context path for the request
        headers - the headers for the request
    • 方法详细资料

      • initId

        @Nullable
        protected String initId()
        Obtain the request id to use, or null in which case the Object identity of this request instance is used.
        从以下版本开始:
        5.1
      • getURI

        public URI getURI()
        从接口复制的说明: HttpRequest
        Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).
        指定者:
        getURI 在接口中 HttpRequest
        返回:
        the URI of the request (never null)
      • getPath

        public RequestPath getPath()
        从接口复制的说明: ServerHttpRequest
        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.
        指定者:
        getPath 在接口中 ServerHttpRequest
      • initQueryParams

        protected MultiValueMap<String,​StringinitQueryParams()
        A method for parsing of the query into name-value pairs. The return value is turned into an immutable map and cached.

        Note that this method is invoked lazily on first access to getQueryParams(). The invocation is not synchronized but the parsing is thread-safe nevertheless.

      • initCookies

        protected abstract MultiValueMap<String,​HttpCookieinitCookies()
        Obtain the cookies from the underlying "native" request and adapt those to an HttpCookie map. The return value is turned into an immutable map and cached.

        Note that this method is invoked lazily on access to getCookies(). Sub-classes should synchronize cookie initialization if the underlying "native" request does not provide thread-safe access to cookie data.

      • initSslInfo

        @Nullable
        protected abstract SslInfo initSslInfo()
        Obtain SSL session information from the underlying "native" request.
        返回:
        the session information, or null if none available
        从以下版本开始:
        5.0.2
      • getNativeRequest

        public abstract <T> T getNativeRequest()
        Return the underlying server response.

        Note: This is exposed mainly for internal framework use such as WebSocket upgrades in the spring-webflux module.