Uses of Interface
org.springframework.http.HttpRequest
Packages that use HttpRequest Package Description org.springframework.http.client Contains an abstraction over client-side HTTP.org.springframework.http.client.support This package provides generic HTTP support classes, to be used by higher-level classes like RestTemplate.org.springframework.http.server Contains an abstraction over server-side HTTP.org.springframework.http.server.reactive Abstractions for reactive HTTP server support including aServerHttpRequestandServerHttpResponsealong with anHttpHandlerfor processing.org.springframework.mock.http.client Mock implementations of client-side HTTP abstractions.org.springframework.mock.http.server.reactive Mock implementations of reactive HTTP server contracts.org.springframework.web.multipart.support Support classes for the multipart resolution framework.org.springframework.web.reactive.function.client Provides a reactiveWebClientthat builds on top of theorg.springframework.http.client.reactivereactive HTTP adapter layer.org.springframework.web.util Miscellaneous web utility classes, such as HTML escaping, Log4j initialization, and cookie handling.Uses of HttpRequest in org.springframework.http.client
Subinterfaces of HttpRequest in org.springframework.http.client Modifier and Type Interface Description interfaceAsyncClientHttpRequestDeprecated.as of Spring 5.0, in favor ofClientRequestinterfaceClientHttpRequestRepresents a client-side HTTP request.Classes in org.springframework.http.client that implement HttpRequest Modifier and Type Class Description classAbstractClientHttpRequestAbstract base forClientHttpRequestthat makes sure that headers and body are not written multiple times.Methods in org.springframework.http.client with parameters of type HttpRequest Modifier and Type Method Description ClientHttpResponseClientHttpRequestExecution. execute(HttpRequest request, byte[] body)Execute the request with the given request attributes and body, and return the response.ListenableFuture<ClientHttpResponse>AsyncClientHttpRequestExecution. executeAsync(HttpRequest request, byte[] body)Deprecated.Resume the request execution by invoking the next interceptor in the chain or executing the request to the remote service.ListenableFuture<ClientHttpResponse>AsyncClientHttpRequestInterceptor. intercept(HttpRequest request, byte[] body, AsyncClientHttpRequestExecution execution)Deprecated.Intercept the given request, and return a response future.ClientHttpResponseClientHttpRequestInterceptor. 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 HttpRequest Modifier and Type Class Description classHttpRequestWrapperProvides a convenient implementation of theHttpRequestinterface that can be overridden to adapt the request.Methods in org.springframework.http.client.support that return HttpRequest Modifier and Type Method Description HttpRequestHttpRequestWrapper. getRequest()Return the wrapped request.Methods in org.springframework.http.client.support with parameters of type HttpRequest Modifier and Type Method Description ClientHttpResponseBasicAuthenticationInterceptor. intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)ClientHttpResponseBasicAuthorizationInterceptor. intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)Deprecated.Constructors in org.springframework.http.client.support with parameters of type HttpRequest Constructor Description HttpRequestWrapper(HttpRequest request)Create a newHttpRequestwrapping the given request object.Uses of HttpRequest in org.springframework.http.server
Subinterfaces of HttpRequest in org.springframework.http.server Modifier and Type Interface Description interfaceServerHttpRequestRepresents a server-side HTTP request.Classes in org.springframework.http.server that implement HttpRequest Modifier and Type Class Description classServletServerHttpRequestServerHttpRequestimplementation that is based on aHttpServletRequest.Uses of HttpRequest in org.springframework.http.server.reactive
Subinterfaces of HttpRequest in org.springframework.http.server.reactive Modifier and Type Interface Description interfaceServerHttpRequestRepresents a reactive server-side HTTP request.Classes in org.springframework.http.server.reactive that implement HttpRequest Modifier and Type Class Description classAbstractServerHttpRequestCommon base class forServerHttpRequestimplementations.classServerHttpRequestDecoratorWraps anotherServerHttpRequestand delegates all methods to it.Uses of HttpRequest in org.springframework.mock.http.client
Classes in org.springframework.mock.http.client that implement HttpRequest Modifier and Type Class Description classMockAsyncClientHttpRequestDeprecated.as of Spring 5.0, with no direct replacementclassMockClientHttpRequestMock implementation ofClientHttpRequest.Uses of HttpRequest in org.springframework.mock.http.server.reactive
Classes in org.springframework.mock.http.server.reactive that implement HttpRequest Modifier and Type Class Description classMockServerHttpRequestMock extension ofAbstractServerHttpRequestfor use in tests without an actual server.Uses of HttpRequest in org.springframework.web.multipart.support
Classes in org.springframework.web.multipart.support that implement HttpRequest Modifier and Type Class Description classRequestPartServletServerHttpRequestServerHttpRequestimplementation that accesses one part of a multipart request.Uses of HttpRequest in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client that return HttpRequest Modifier and Type Method Description HttpRequestWebClientResponseException. getRequest()Return the corresponding request.Methods in org.springframework.web.reactive.function.client with parameters of type HttpRequest Modifier and Type Method Description static WebClientResponseExceptionWebClientResponseException. create(int statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request)CreateWebClientResponseExceptionor an HTTP status specific subclass.ClientResponse.BuilderClientResponse.Builder. request(HttpRequest request)Set the request associated with the response.Constructors in org.springframework.web.reactive.function.client with parameters of type HttpRequest Constructor Description UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request)Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.WebClientResponseException(int status, String reasonPhrase, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request)Constructor with response data only, and a default message.WebClientResponseException(String message, int statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset charset, HttpRequest request)Constructor with a prepared message.Uses of HttpRequest in org.springframework.web.util
Methods in org.springframework.web.util with parameters of type HttpRequest Modifier and Type Method Description static UriComponentsBuilderUriComponentsBuilder. fromHttpRequest(HttpRequest request)Create a newUriComponentsobject 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 booleanWebUtils. isSameOrigin(HttpRequest request)Check if the request is a same-origin one, based onOrigin,Host,Forwarded,X-Forwarded-Proto,X-Forwarded-HostandX-Forwarded-Portheaders.static booleanWebUtils. isValidOrigin(HttpRequest request, Collection<String> allowedOrigins)Check the given request origin against a list of allowed origins.