Uses of Interface
org.springframework.http.HttpRequest
Packages that use HttpRequest
Package
Description
Contains an abstraction over client-side HTTP.
This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
Contains an abstraction over server-side HTTP.
Abstractions for reactive HTTP server support including a
ServerHttpRequest
and
ServerHttpResponse
along with an
HttpHandler
for processing.Support classes for the multipart resolution framework.
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
-
Uses of HttpRequest in org.springframework.http.client
Subinterfaces of HttpRequest in org.springframework.http.clientModifier and TypeInterfaceDescriptioninterface
Represents a client-side HTTP request.Classes in org.springframework.http.client that implement HttpRequestModifier and TypeClassDescriptionclass
Abstract base forClientHttpRequest
that makes sure that headers and body are not written multiple times.Methods in org.springframework.http.client with parameters of type HttpRequestModifier and TypeMethodDescriptionClientHttpRequestExecution.execute
(HttpRequest request, byte[] body) Execute the request with the given request attributes and body, and return the response.ClientHttpRequestInterceptor.intercept
(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) Intercept the given request, and return a response. -
Uses of HttpRequest in org.springframework.http.client.support
Classes in org.springframework.http.client.support that implement HttpRequestModifier and TypeClassDescriptionclass
Provides a convenient implementation of theHttpRequest
interface that can be overridden to adapt the request.Methods in org.springframework.http.client.support that return HttpRequestMethods in org.springframework.http.client.support with parameters of type HttpRequestModifier and TypeMethodDescriptionBasicAuthenticationInterceptor.intercept
(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) Constructors in org.springframework.http.client.support with parameters of type HttpRequestModifierConstructorDescriptionHttpRequestWrapper
(HttpRequest request) Create a newHttpRequest
wrapping the given request object. -
Uses of HttpRequest in org.springframework.http.server
Subinterfaces of HttpRequest in org.springframework.http.serverModifier and TypeInterfaceDescriptioninterface
Represents a server-side HTTP request.Classes in org.springframework.http.server that implement HttpRequestModifier and TypeClassDescriptionclass
ServerHttpRequest
implementation that is based on aHttpServletRequest
. -
Uses of HttpRequest in org.springframework.http.server.reactive
Subinterfaces of HttpRequest in org.springframework.http.server.reactiveModifier and TypeInterfaceDescriptioninterface
Represents a reactive server-side HTTP request.Classes in org.springframework.http.server.reactive that implement HttpRequestModifier and TypeClassDescriptionclass
Common base class forServerHttpRequest
implementations.class
Wraps anotherServerHttpRequest
and delegates all methods to it. -
Uses of HttpRequest in org.springframework.web.multipart.support
Classes in org.springframework.web.multipart.support that implement HttpRequestModifier and TypeClassDescriptionclass
ServerHttpRequest
implementation that accesses one part of a multipart request. -
Uses of HttpRequest in org.springframework.web.util
Methods in org.springframework.web.util with parameters of type HttpRequestModifier and TypeMethodDescriptionstatic UriComponentsBuilder
UriComponentsBuilder.fromHttpRequest
(HttpRequest request) Create a newUriComponents
object from the URI associated with the given HttpRequest while also overlaying with values from the headers "Forwarded" (RFC 7239), or "X-Forwarded-Host", "X-Forwarded-Port", and "X-Forwarded-Proto" if "Forwarded" is not found.static boolean
WebUtils.isSameOrigin
(HttpRequest request) Check if the request is a same-origin one, based onOrigin
,Host
,Forwarded
,X-Forwarded-Proto
,X-Forwarded-Host
andX-Forwarded-Port
headers.static boolean
WebUtils.isValidOrigin
(HttpRequest request, Collection<String> allowedOrigins) Check the given request origin against a list of allowed origins.static InetSocketAddress
UriComponentsBuilder.parseForwardedFor
(HttpRequest request, InetSocketAddress remoteAddress) Parse the first "Forwarded: for=..." or "X-Forwarded-For" header value to anInetSocketAddress
representing the address of the client.