Class HttpOperations
java.lang.Object
org.zalando.riptide.compatibility.HttpOperations
- All Implemented Interfaces:
org.springframework.web.client.RestOperations
@Nonnull
@API(status=EXPERIMENTAL)
public final class HttpOperations
extends Object
implements org.springframework.web.client.RestOperations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoid<T> org.springframework.http.ResponseEntity<T>exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> entity, Class<T> responseType, Object... uriVariables) <T> org.springframework.http.ResponseEntity<T>exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> entity, Class<T> responseType, Map<String, ?> uriVariables) <T> org.springframework.http.ResponseEntity<T>exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) <T> org.springframework.http.ResponseEntity<T>exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) <T> org.springframework.http.ResponseEntity<T>exchange(URI url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> entity, Class<T> responseType) <T> org.springframework.http.ResponseEntity<T>exchange(URI url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType) <T> org.springframework.http.ResponseEntity<T><T> org.springframework.http.ResponseEntity<T>exchange(org.springframework.http.RequestEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType) <T> Texecute(String url, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback callback, org.springframework.web.client.ResponseExtractor<T> extractor, Object... uriVariables) <T> Texecute(String url, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback callback, org.springframework.web.client.ResponseExtractor<T> extractor, Map<String, ?> uriVariables) <T> Texecute(URI url, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback callback, org.springframework.web.client.ResponseExtractor<T> extractor) <T> org.springframework.http.ResponseEntity<T>getForEntity(String url, Class<T> responseType, Object... uriVariables) <T> org.springframework.http.ResponseEntity<T>getForEntity(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> org.springframework.http.ResponseEntity<T>getForEntity(URI url, Class<T> responseType) <T> TgetForObject(String url, Class<T> responseType, Object... uriVariables) <T> TgetForObject(String url, Class<T> responseType, Map<String, ?> uriVariables) <T> TgetForObject(URI url, Class<T> responseType) org.springframework.http.HttpHeadersheadForHeaders(String url, Object... uriVariables) org.springframework.http.HttpHeadersheadForHeaders(String url, Map<String, ?> uriVariables) org.springframework.http.HttpHeadersheadForHeaders(URI url) Set<org.springframework.http.HttpMethod>optionsForAllow(String url, Object... uriVariables) Set<org.springframework.http.HttpMethod>optionsForAllow(String url, Map<String, ?> uriVariables) Set<org.springframework.http.HttpMethod>optionsForAllow(URI url) <T> TpatchForObject(String url, Object body, Class<T> responseType, Object... uriVariables) <T> T<T> TpatchForObject(URI url, Object body, Class<T> responseType) <T> org.springframework.http.ResponseEntity<T>postForEntity(String url, Object body, Class<T> responseType, Object... uriVariables) <T> org.springframework.http.ResponseEntity<T><T> org.springframework.http.ResponseEntity<T>postForEntity(URI url, Object body, Class<T> responseType) postForLocation(String url, Object body, Object... uriVariables) postForLocation(String url, Object body, Map<String, ?> uriVariables) postForLocation(URI url, Object body) <T> TpostForObject(String url, Object body, Class<T> responseType, Object... uriVariables) <T> T<T> TpostForObject(URI url, Object body, Class<T> responseType) voidvoidvoidwithDefaultRoutingTree(RoutingTree<org.springframework.http.HttpStatus.Series> defaultRoutingTree)
-
Constructor Details
-
HttpOperations
-
-
Method Details
-
withDefaultRoutingTree
public HttpOperations withDefaultRoutingTree(RoutingTree<org.springframework.http.HttpStatus.Series> defaultRoutingTree) -
getForObject
- Specified by:
getForObjectin interfaceorg.springframework.web.client.RestOperations
-
getForObject
- Specified by:
getForObjectin interfaceorg.springframework.web.client.RestOperations
-
getForObject
- Specified by:
getForObjectin interfaceorg.springframework.web.client.RestOperations
-
getForEntity
public <T> org.springframework.http.ResponseEntity<T> getForEntity(String url, Class<T> responseType, Object... uriVariables) - Specified by:
getForEntityin interfaceorg.springframework.web.client.RestOperations
-
getForEntity
public <T> org.springframework.http.ResponseEntity<T> getForEntity(String url, Class<T> responseType, Map<String, ?> uriVariables) - Specified by:
getForEntityin interfaceorg.springframework.web.client.RestOperations
-
getForEntity
- Specified by:
getForEntityin interfaceorg.springframework.web.client.RestOperations
-
headForHeaders
@Nonnull public org.springframework.http.HttpHeaders headForHeaders(String url, Object... uriVariables) - Specified by:
headForHeadersin interfaceorg.springframework.web.client.RestOperations
-
headForHeaders
@Nonnull public org.springframework.http.HttpHeaders headForHeaders(String url, Map<String, ?> uriVariables) - Specified by:
headForHeadersin interfaceorg.springframework.web.client.RestOperations
-
headForHeaders
- Specified by:
headForHeadersin interfaceorg.springframework.web.client.RestOperations
-
postForLocation
- Specified by:
postForLocationin interfaceorg.springframework.web.client.RestOperations
-
postForLocation
- Specified by:
postForLocationin interfaceorg.springframework.web.client.RestOperations
-
postForLocation
- Specified by:
postForLocationin interfaceorg.springframework.web.client.RestOperations
-
postForObject
public <T> T postForObject(String url, @Nullable Object body, Class<T> responseType, Object... uriVariables) - Specified by:
postForObjectin interfaceorg.springframework.web.client.RestOperations
-
postForObject
public <T> T postForObject(String url, @Nullable Object body, Class<T> responseType, Map<String, ?> uriVariables) - Specified by:
postForObjectin interfaceorg.springframework.web.client.RestOperations
-
postForObject
- Specified by:
postForObjectin interfaceorg.springframework.web.client.RestOperations
-
postForEntity
@Nonnull public <T> org.springframework.http.ResponseEntity<T> postForEntity(String url, @Nullable Object body, Class<T> responseType, Object... uriVariables) - Specified by:
postForEntityin interfaceorg.springframework.web.client.RestOperations
-
postForEntity
@Nonnull public <T> org.springframework.http.ResponseEntity<T> postForEntity(String url, @Nullable Object body, Class<T> responseType, Map<String, ?> uriVariables) - Specified by:
postForEntityin interfaceorg.springframework.web.client.RestOperations
-
postForEntity
@Nonnull public <T> org.springframework.http.ResponseEntity<T> postForEntity(URI url, @Nullable Object body, Class<T> responseType) - Specified by:
postForEntityin interfaceorg.springframework.web.client.RestOperations
-
put
- Specified by:
putin interfaceorg.springframework.web.client.RestOperations
-
put
- Specified by:
putin interfaceorg.springframework.web.client.RestOperations
-
put
- Specified by:
putin interfaceorg.springframework.web.client.RestOperations
-
patchForObject
public <T> T patchForObject(String url, @Nullable Object body, Class<T> responseType, Object... uriVariables) - Specified by:
patchForObjectin interfaceorg.springframework.web.client.RestOperations
-
patchForObject
public <T> T patchForObject(String url, @Nullable Object body, Class<T> responseType, Map<String, ?> uriVariables) - Specified by:
patchForObjectin interfaceorg.springframework.web.client.RestOperations
-
patchForObject
- Specified by:
patchForObjectin interfaceorg.springframework.web.client.RestOperations
-
delete
- Specified by:
deletein interfaceorg.springframework.web.client.RestOperations
-
delete
- Specified by:
deletein interfaceorg.springframework.web.client.RestOperations
-
delete
- Specified by:
deletein interfaceorg.springframework.web.client.RestOperations
-
optionsForAllow
@Nonnull public Set<org.springframework.http.HttpMethod> optionsForAllow(String url, Object... uriVariables) - Specified by:
optionsForAllowin interfaceorg.springframework.web.client.RestOperations
-
optionsForAllow
@Nonnull public Set<org.springframework.http.HttpMethod> optionsForAllow(String url, Map<String, ?> uriVariables) - Specified by:
optionsForAllowin interfaceorg.springframework.web.client.RestOperations
-
optionsForAllow
- Specified by:
optionsForAllowin interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, @Nullable org.springframework.http.HttpEntity<?> entity, Class<T> responseType, Object... uriVariables) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, @Nullable org.springframework.http.HttpEntity<?> entity, Class<T> responseType, Map<String, ?> uriVariables) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(URI url, org.springframework.http.HttpMethod method, @Nullable org.springframework.http.HttpEntity<?> entity, Class<T> responseType) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, @Nullable org.springframework.http.HttpEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, @Nullable org.springframework.http.HttpEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(URI url, org.springframework.http.HttpMethod method, @Nullable org.springframework.http.HttpEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(org.springframework.http.RequestEntity<?> entity, Class<T> responseType) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
exchange
@Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(org.springframework.http.RequestEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType) - Specified by:
exchangein interfaceorg.springframework.web.client.RestOperations
-
execute
public <T> T execute(String url, org.springframework.http.HttpMethod method, @Nullable org.springframework.web.client.RequestCallback callback, @Nullable org.springframework.web.client.ResponseExtractor<T> extractor, Object... uriVariables) - Specified by:
executein interfaceorg.springframework.web.client.RestOperations
-
execute
public <T> T execute(String url, org.springframework.http.HttpMethod method, @Nullable org.springframework.web.client.RequestCallback callback, @Nullable org.springframework.web.client.ResponseExtractor<T> extractor, Map<String, ?> uriVariables) - Specified by:
executein interfaceorg.springframework.web.client.RestOperations
-
execute
public <T> T execute(URI url, org.springframework.http.HttpMethod method, @Nullable org.springframework.web.client.RequestCallback callback, @Nullable org.springframework.web.client.ResponseExtractor<T> extractor) - Specified by:
executein interfaceorg.springframework.web.client.RestOperations
-