ServerHttpRequest implementations.
| Modifier and Type | Field and Description |
|---|---|
| private MultiValueMap | |
| private final HttpHeaders | |
| private String | |
| private String | |
| private final HttpMethod | |
| private final RequestPath | |
| private static final Pattern | |
| private MultiValueMap | |
| private SslInfo | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| public | AbstractServerHttpRequest(HttpMethod
the HTTP method for the request method, URI the URI for the request uri, String the context path for the request contextPath, MultiValueMap<String, String> the headers for the request (as headers)MultiValueMap)Constructor with the method, URI and headers for the request. |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public MultiValueMap | getCookies()
Implements org. |
| public HttpHeaders | getHeaders()
Implements org. |
| public String | getId()
Implements org. |
| pack-priv String | |
| public HttpMethod | getMethod()
Implements org. |
| public abstract <T> T | |
| public RequestPath | getPath()
Implements org. query.
|
| public MultiValueMap | getQueryParams()
Implements org. |
| public SslInfo | getSslInfo()
Overrides default org. |
| public URI | getURI()
Implements org. |
| protected abstract MultiValueMap | initCookies()
Obtain the cookies from the underlying "native" request and adapt those to
an |
| protected String | initId()
Obtain the request id to use, or |
| protected String | |
| protected MultiValueMap | |
| protected abstract SslInfo | Returns: the session information, ornull if none availableObtain SSL session information from the underlying "native" request. |
| cookies | back to summary |
|---|---|
| private MultiValueMap<String, HttpCookie> cookies
| |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| id | back to summary |
|---|---|
| private String id
| |
| logPrefix | back to summary |
|---|---|
| private String logPrefix
| |
| method | back to summary |
|---|---|
| private final HttpMethod method | |
| path | back to summary |
|---|---|
| private final RequestPath path | |
| QUERY_PATTERN | back to summary |
|---|---|
| private static final Pattern QUERY_PATTERN | |
| queryParams | back to summary |
|---|---|
| private MultiValueMap<String, String> queryParams
| |
| sslInfo | back to summary |
|---|---|
| private SslInfo sslInfo
| |
| uri | back to summary |
|---|---|
| private final URI uri | |
| AbstractServerHttpRequest | back to summary |
|---|---|
| public AbstractServerHttpRequest(HttpMethod method, URI uri, String contextPath, MultiValueMap<String, String> headers) Constructor with the method, URI and headers for the request.
| |
| decodeQueryParam | back to summary |
|---|---|
| private String decodeQueryParam(String value) | |
| getCookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a read-only map of cookies sent by the client.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| getId | back to summary |
|---|---|
| public String getId() Implements org. Doc from org. Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.
| |
| getLogPrefix | back to summary |
|---|---|
| pack-priv String getLogPrefix() For internal use in logging at the HTTP adapter layer.
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Implements org. Doc from org. Return the HTTP method of the request.
| |
| getNativeRequest | back to summary |
|---|---|
| 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. | |
| getPath | back to summary |
|---|---|
| public RequestPath getPath() Implements org. Doc from org. Returns a structured representation of the full request path up to but
not including the The returned path is subdivided into a
| |
| getQueryParams | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a read-only map with parsed and decoded query parameter values.
| |
| getSslInfo | back to summary |
|---|---|
| public SslInfo getSslInfo() Overrides default org. Doc from org. Return the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available. | |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation). | |
| initCookies | back to summary |
|---|---|
| protected abstract MultiValueMap Obtain the cookies from the underlying "native" request and adapt those to
an Note that this method is invoked lazily on access to
| |
| initId | back to summary |
|---|---|
| protected String initId() Obtain the request id to use, or
| |
| initLogPrefix | back to summary |
|---|---|
| protected String initLogPrefix() Subclasses can override this to provide the prefix to use for log messages. By default, this is
| |
| initQueryParams | back to summary |
|---|---|
| protected MultiValueMap 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
| |
| initSslInfo | back to summary |
|---|---|
| protected abstract SslInfo initSslInfo() Obtain SSL session information from the underlying "native" request. | |