| Package | Description |
|---|---|
| org.springframework.web.servlet.function |
Provides the types that make up Spring's functional web framework for Servlet environments.
|
| Modifier and Type | Method and Description |
|---|---|
ServerRequest.Builder |
ServerRequest.Builder.attribute(java.lang.String name,
java.lang.Object value)
Add an attribute with the given name and value.
|
ServerRequest.Builder |
ServerRequest.Builder.attributes(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> attributesConsumer)
Manipulate this request's attributes with the given consumer.
|
ServerRequest.Builder |
ServerRequest.Builder.body(byte[] body)
Set the body of the request.
|
ServerRequest.Builder |
ServerRequest.Builder.body(java.lang.String body)
Set the body of the request to the UTF-8 encoded bytes of the given string.
|
ServerRequest.Builder |
ServerRequest.Builder.cookie(java.lang.String name,
java.lang.String... values)
Add a cookie with the given name and value(s).
|
ServerRequest.Builder |
ServerRequest.Builder.cookies(java.util.function.Consumer<org.springframework.util.MultiValueMap<java.lang.String,javax.servlet.http.Cookie>> cookiesConsumer)
Manipulate this request's cookies with the given consumer.
|
static ServerRequest.Builder |
ServerRequest.from(ServerRequest other)
Create a builder with the status, headers, and cookies of the given request.
|
ServerRequest.Builder |
ServerRequest.Builder.header(java.lang.String headerName,
java.lang.String... headerValues)
Add the given header value(s) under the given name.
|
ServerRequest.Builder |
ServerRequest.Builder.headers(java.util.function.Consumer<org.springframework.http.HttpHeaders> headersConsumer)
Manipulate this request's headers with the given consumer.
|
ServerRequest.Builder |
ServerRequest.Builder.method(org.springframework.http.HttpMethod method)
Set the method of the request.
|
ServerRequest.Builder |
ServerRequest.Builder.param(java.lang.String name,
java.lang.String... values)
Add a parameter with the given name and value.
|
ServerRequest.Builder |
ServerRequest.Builder.params(java.util.function.Consumer<org.springframework.util.MultiValueMap<java.lang.String,java.lang.String>> paramsConsumer)
Manipulate this request's parameters with the given consumer.
|
ServerRequest.Builder |
ServerRequest.Builder.remoteAddress(java.net.InetSocketAddress remoteAddress)
Set the remote address of the request.
|
ServerRequest.Builder |
ServerRequest.Builder.uri(java.net.URI uri)
Set the URI of the request.
|