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 Details

    • HttpOperations

      public HttpOperations(Http http)
  • Method Details

    • withDefaultRoutingTree

      public HttpOperations withDefaultRoutingTree(RoutingTree<org.springframework.http.HttpStatus.Series> defaultRoutingTree)
    • getForObject

      public <T> T getForObject(String url, Class<T> responseType, Object... uriVariables)
      Specified by:
      getForObject in interface org.springframework.web.client.RestOperations
    • getForObject

      public <T> T getForObject(String url, Class<T> responseType, Map<String,?> uriVariables)
      Specified by:
      getForObject in interface org.springframework.web.client.RestOperations
    • getForObject

      public <T> T getForObject(URI url, Class<T> responseType)
      Specified by:
      getForObject in interface org.springframework.web.client.RestOperations
    • getForEntity

      public <T> org.springframework.http.ResponseEntity<T> getForEntity(String url, Class<T> responseType, Object... uriVariables)
      Specified by:
      getForEntity in interface org.springframework.web.client.RestOperations
    • getForEntity

      public <T> org.springframework.http.ResponseEntity<T> getForEntity(String url, Class<T> responseType, Map<String,?> uriVariables)
      Specified by:
      getForEntity in interface org.springframework.web.client.RestOperations
    • getForEntity

      public <T> org.springframework.http.ResponseEntity<T> getForEntity(URI url, Class<T> responseType)
      Specified by:
      getForEntity in interface org.springframework.web.client.RestOperations
    • headForHeaders

      @Nonnull public org.springframework.http.HttpHeaders headForHeaders(String url, Object... uriVariables)
      Specified by:
      headForHeaders in interface org.springframework.web.client.RestOperations
    • headForHeaders

      @Nonnull public org.springframework.http.HttpHeaders headForHeaders(String url, Map<String,?> uriVariables)
      Specified by:
      headForHeaders in interface org.springframework.web.client.RestOperations
    • headForHeaders

      @Nonnull public org.springframework.http.HttpHeaders headForHeaders(URI url)
      Specified by:
      headForHeaders in interface org.springframework.web.client.RestOperations
    • postForLocation

      public URI postForLocation(String url, @Nullable Object body, Object... uriVariables)
      Specified by:
      postForLocation in interface org.springframework.web.client.RestOperations
    • postForLocation

      public URI postForLocation(String url, @Nullable Object body, Map<String,?> uriVariables)
      Specified by:
      postForLocation in interface org.springframework.web.client.RestOperations
    • postForLocation

      public URI postForLocation(URI url, @Nullable Object body)
      Specified by:
      postForLocation in interface org.springframework.web.client.RestOperations
    • postForObject

      public <T> T postForObject(String url, @Nullable Object body, Class<T> responseType, Object... uriVariables)
      Specified by:
      postForObject in interface org.springframework.web.client.RestOperations
    • postForObject

      public <T> T postForObject(String url, @Nullable Object body, Class<T> responseType, Map<String,?> uriVariables)
      Specified by:
      postForObject in interface org.springframework.web.client.RestOperations
    • postForObject

      public <T> T postForObject(URI url, @Nullable Object body, Class<T> responseType)
      Specified by:
      postForObject in interface org.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:
      postForEntity in interface org.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:
      postForEntity in interface org.springframework.web.client.RestOperations
    • postForEntity

      @Nonnull public <T> org.springframework.http.ResponseEntity<T> postForEntity(URI url, @Nullable Object body, Class<T> responseType)
      Specified by:
      postForEntity in interface org.springframework.web.client.RestOperations
    • put

      public void put(String url, @Nullable Object body, Object... uriVariables)
      Specified by:
      put in interface org.springframework.web.client.RestOperations
    • put

      public void put(String url, @Nullable Object body, Map<String,?> uriVariables)
      Specified by:
      put in interface org.springframework.web.client.RestOperations
    • put

      public void put(URI url, @Nullable Object body)
      Specified by:
      put in interface org.springframework.web.client.RestOperations
    • patchForObject

      public <T> T patchForObject(String url, @Nullable Object body, Class<T> responseType, Object... uriVariables)
      Specified by:
      patchForObject in interface org.springframework.web.client.RestOperations
    • patchForObject

      public <T> T patchForObject(String url, @Nullable Object body, Class<T> responseType, Map<String,?> uriVariables)
      Specified by:
      patchForObject in interface org.springframework.web.client.RestOperations
    • patchForObject

      public <T> T patchForObject(URI url, @Nullable Object body, Class<T> responseType)
      Specified by:
      patchForObject in interface org.springframework.web.client.RestOperations
    • delete

      public void delete(String url, Object... uriVariables)
      Specified by:
      delete in interface org.springframework.web.client.RestOperations
    • delete

      public void delete(String url, Map<String,?> uriVariables)
      Specified by:
      delete in interface org.springframework.web.client.RestOperations
    • delete

      public void delete(URI url)
      Specified by:
      delete in interface org.springframework.web.client.RestOperations
    • optionsForAllow

      @Nonnull public Set<org.springframework.http.HttpMethod> optionsForAllow(String url, Object... uriVariables)
      Specified by:
      optionsForAllow in interface org.springframework.web.client.RestOperations
    • optionsForAllow

      @Nonnull public Set<org.springframework.http.HttpMethod> optionsForAllow(String url, Map<String,?> uriVariables)
      Specified by:
      optionsForAllow in interface org.springframework.web.client.RestOperations
    • optionsForAllow

      @Nonnull public Set<org.springframework.http.HttpMethod> optionsForAllow(URI url)
      Specified by:
      optionsForAllow in interface org.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:
      exchange in interface org.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:
      exchange in interface org.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:
      exchange in interface org.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:
      exchange in interface org.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:
      exchange in interface org.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:
      exchange in interface org.springframework.web.client.RestOperations
    • exchange

      @Nonnull public <T> org.springframework.http.ResponseEntity<T> exchange(org.springframework.http.RequestEntity<?> entity, Class<T> responseType)
      Specified by:
      exchange in interface org.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:
      exchange in interface org.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:
      execute in interface org.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:
      execute in interface org.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:
      execute in interface org.springframework.web.client.RestOperations