Uses of Class
org.springframework.http.ResponseEntity
Packages that use ResponseEntity
Package
Description
Contains a basic abstraction over client/server-side HTTP.
Core package of the client-side web support.
Support for creating a client proxy for an HTTP service annotated with
HttpExchange methods.-
Uses of ResponseEntity in org.springframework.http
Methods in org.springframework.http that return ResponseEntityModifier and TypeMethodDescription<T> ResponseEntity<T>ResponseEntity.BodyBuilder.body(T body) Set the body of the response entity and returns it.<T> ResponseEntity<T>ResponseEntity.HeadersBuilder.build()Build the response entity with no body.static <T> ResponseEntity<T>A shortcut for creating aResponseEntitywith the given body and the OK status, or an empty body and a NOT FOUND status in case of an Optional.empty() parameter.static <T> ResponseEntity<T>ResponseEntity.ofNullable(T body) static <T> ResponseEntity<T>ResponseEntity.ok(T body) A shortcut for creating aResponseEntitywith the given body and the status set to OK. -
Uses of ResponseEntity in org.springframework.web.client
Methods in org.springframework.web.client that return ResponseEntityModifier and TypeMethodDescription<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(RequestEntity<?> requestEntity, Class<T> responseType) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(RequestEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(RequestEntity<?> entity, Class<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(RequestEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>RestOperations.getForEntity(String url, Class<T> responseType, Object... uriVariables) Retrieve an entity by doing a GET on the specified URL.<T> ResponseEntity<T>RestOperations.getForEntity(String url, Class<T> responseType, Map<String, ?> uriVariables) Retrieve a representation by doing a GET on the URI template.<T> ResponseEntity<T>RestOperations.getForEntity(URI url, Class<T> responseType) Retrieve a representation by doing a GET on the URL.<T> ResponseEntity<T>RestTemplate.getForEntity(String url, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.getForEntity(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.getForEntity(URI url, Class<T> responseType) <T> ResponseEntity<T>RestOperations.postForEntity(String url, Object request, Class<T> responseType, Object... uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.postForEntity(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) Create a new resource by POSTing the given object to the URI template, and returns the response asHttpEntity.<T> ResponseEntity<T>RestOperations.postForEntity(URI url, Object request, Class<T> responseType) Create a new resource by POSTing the given object to the URL, and returns the response asResponseEntity.<T> ResponseEntity<T>RestTemplate.postForEntity(String url, Object request, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.postForEntity(String url, Object request, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.postForEntity(URI url, Object request, Class<T> responseType) Methods in org.springframework.web.client that return types with arguments of type ResponseEntityModifier and TypeMethodDescription<T> ResponseExtractor<ResponseEntity<T>>RestTemplate.responseEntityExtractor(Type responseType) Return aResponseExtractorthat prepares aResponseEntity. -
Uses of ResponseEntity in org.springframework.web.service.invoker
Methods in org.springframework.web.service.invoker that return types with arguments of type ResponseEntityModifier and TypeMethodDescriptionreactor.core.publisher.Mono<ResponseEntity<Void>>HttpClientAdapter.requestToBodilessEntity(HttpRequestValues requestValues) Variant ofHttpClientAdapter.requestToVoid(HttpRequestValues)with additional access to the response status and headers.<T> reactor.core.publisher.Mono<ResponseEntity<T>>HttpClientAdapter.requestToEntity(HttpRequestValues requestValues, org.springframework.core.ParameterizedTypeReference<T> bodyType) Variant ofHttpClientAdapter.requestToBody(HttpRequestValues, ParameterizedTypeReference)with additional access to the response status and headers.<T> reactor.core.publisher.Mono<ResponseEntity<reactor.core.publisher.Flux<T>>>HttpClientAdapter.requestToEntityFlux(HttpRequestValues requestValues, org.springframework.core.ParameterizedTypeReference<T> bodyType) Variant ofHttpClientAdapter.requestToBodyFlux(HttpRequestValues, ParameterizedTypeReference)with additional access to the response status and headers.