Interface RestClient

All Known Implementing Classes:
DefaultRestClient

public interface RestClient
REST client interface for both generic requests / responses as well as for the ObjectRequest / ObjectResponse types.
Author:
Roman Strobl, roman.strobl@wultra.com
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> org.springframework.http.ResponseEntity<T>
    delete(String path, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP DELETE request.
    <T> org.springframework.http.ResponseEntity<T>
    delete(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP DELETE request with specified HTTP headers.
    <T> void
    deleteNonBlocking(String path, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP DELETE request.
    <T> void
    deleteNonBlocking(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP DELETE request with specified HTTP headers.
    Execute a blocking HTTP DELETE request with ObjectRequest / Response types.
    deleteObject(String path, Class<T> responseType)
    Execute a blocking HTTP DELETE request with ObjectRequest / ObjectResponse types.
    deleteObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers)
    Execute a blocking HTTP DELETE request with ObjectRequest / Response types and specified query parameters and HTTP headers.
    deleteObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType)
    Execute a blocking HTTP DELETE request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
    <T> org.springframework.http.ResponseEntity<T>
    get(String path, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP GET request.
    <T> org.springframework.http.ResponseEntity<T>
    get(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP GET request with specified HTTP headers.
    <T> void
    getNonBlocking(String path, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP GET request.
    <T> void
    getNonBlocking(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP GET request with specified HTTP headers.
    Execute a blocking HTTP GET request with ObjectRequest / Response types.
    getObject(String path, Class<T> responseType)
    Execute a blocking HTTP GET request with ObjectRequest / ObjectResponse types.
    getObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers)
    Execute a blocking HTTP GET request with ObjectRequest / Response types and specified query parameters and HTTP headers.
    getObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType)
    Execute a blocking HTTP GET request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
    <T> org.springframework.http.ResponseEntity<T>
    head(String path, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP HEAD request.
    <T> org.springframework.http.ResponseEntity<T>
    head(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP HEAD request with specified HTTP headers.
    <T> void
    headNonBlocking(String path, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP HEAD request.
    <T> void
    headNonBlocking(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP HEAD request with specified HTTP headers.
    Execute a blocking HTTP HEAD request with ObjectRequest / Response types.
    headObject(String path, Class<T> responseType)
    Execute a blocking HTTP HEAD request with ObjectRequest / ObjectResponse types.
    headObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers)
    Execute a blocking HTTP HEAD request with ObjectRequest / Response types and specified query parameters and HTTP headers.
    headObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType)
    Execute a blocking HTTP HEAD request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
    <T> org.springframework.http.ResponseEntity<T>
    patch(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP PATCH request.
    <T> org.springframework.http.ResponseEntity<T>
    patch(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP PATCH request with specified HTTP headers.
    <T> void
    patchNonBlocking(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP PATCH request.
    <T> void
    patchNonBlocking(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP PATCH request with specified HTTP headers.
    patchObject(String path, ObjectRequest<?> objectRequest)
    Execute a blocking HTTP PATCH request with ObjectRequest / Response types.
    patchObject(String path, ObjectRequest<?> objectRequest, Class<T> responseType)
    Execute a blocking HTTP PATCH request with ObjectRequest / ObjectResponse types.
    patchObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers)
    Execute a blocking HTTP PATCH request with ObjectRequest / Response types and specified query parameters and HTTP headers.
    patchObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType)
    Execute a blocking HTTP PATCH request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
    <T> org.springframework.http.ResponseEntity<T>
    post(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP POST request.
    <T> org.springframework.http.ResponseEntity<T>
    post(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP POST request with specified HTTP headers.
    <T> void
    postNonBlocking(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP POST request.
    <T> void
    postNonBlocking(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP POST request with specified HTTP headers.
    postObject(String path, ObjectRequest<?> objectRequest)
    Execute a blocking HTTP POST request with ObjectRequest / Response types.
    postObject(String path, ObjectRequest<?> objectRequest, Class<T> responseType)
    Execute a blocking HTTP POST request with ObjectRequest / ObjectResponse types.
    postObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers)
    Execute a blocking HTTP POST request with ObjectRequest / Response types and specified query parameters and HTTP headers.
    postObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType)
    Execute a blocking HTTP POST request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
    <T> org.springframework.http.ResponseEntity<T>
    put(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP PUT request.
    <T> org.springframework.http.ResponseEntity<T>
    put(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType)
    Execute a blocking HTTP PUT request with specified HTTP headers.
    <T> void
    putNonBlocking(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP PUT request.
    <T> void
    putNonBlocking(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError)
    Execute a non-blocking HTTP PUT request with specified HTTP headers.
    putObject(String path, ObjectRequest<?> objectRequest)
    Execute a blocking HTTP PUT request with ObjectRequest / Response types.
    putObject(String path, ObjectRequest<?> objectRequest, Class<T> responseType)
    Execute a blocking HTTP PUT request with ObjectRequest / ObjectResponse types.
    putObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers)
    Execute a blocking HTTP PUT request with ObjectRequest / Response types and specified query parameters and HTTP headers.
    putObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType)
    Execute a blocking HTTP PUT request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
  • Method Details

    • get

      <T> org.springframework.http.ResponseEntity<T> get(String path, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP GET request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Parameterized response type.
      Returns:
      HTTP GET response.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • get

      <T> org.springframework.http.ResponseEntity<T> get(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP GET request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      Returns:
      HTTP GET response.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • getNonBlocking

      <T> void getNonBlocking(String path, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP GET request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • getNonBlocking

      <T> void getNonBlocking(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP GET request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • getObject

      Response getObject(String path) throws RestClientException
      Execute a blocking HTTP GET request with ObjectRequest / Response types.
      Parameters:
      path - Request path.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • getObject

      Response getObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers) throws RestClientException
      Execute a blocking HTTP GET request with ObjectRequest / Response types and specified query parameters and HTTP headers.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • getObject

      <T> ObjectResponse<T> getObject(String path, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP GET request with ObjectRequest / ObjectResponse types.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • getObject

      <T> ObjectResponse<T> getObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP GET request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP GET request fails.
    • post

      <T> org.springframework.http.ResponseEntity<T> post(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP POST request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      responseType - Parameterized response type.
      Returns:
      HTTP POST response.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • post

      <T> org.springframework.http.ResponseEntity<T> post(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP POST request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      Returns:
      HTTP POST response.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • postNonBlocking

      <T> void postNonBlocking(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP POST request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • postNonBlocking

      <T> void postNonBlocking(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP POST request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • postObject

      Response postObject(String path, ObjectRequest<?> objectRequest) throws RestClientException
      Execute a blocking HTTP POST request with ObjectRequest / Response types.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • postObject

      Response postObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers) throws RestClientException
      Execute a blocking HTTP POST request with ObjectRequest / Response types and specified query parameters and HTTP headers.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      queryParams - Query parameters.
      headers - HTTP headers.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • postObject

      <T> ObjectResponse<T> postObject(String path, ObjectRequest<?> objectRequest, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP POST request with ObjectRequest / ObjectResponse types.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • postObject

      <T> ObjectResponse<T> postObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP POST request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP POST request fails.
    • put

      <T> org.springframework.http.ResponseEntity<T> put(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP PUT request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      responseType - Parameterized response type.
      Returns:
      HTTP PUT response.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • put

      <T> org.springframework.http.ResponseEntity<T> put(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP PUT request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      Returns:
      HTTP PUT response.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • putNonBlocking

      <T> void putNonBlocking(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP PUT request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • putNonBlocking

      <T> void putNonBlocking(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP PUT request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • putObject

      Response putObject(String path, ObjectRequest<?> objectRequest) throws RestClientException
      Execute a blocking HTTP PUT request with ObjectRequest / Response types.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • putObject

      Response putObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers) throws RestClientException
      Execute a blocking HTTP PUT request with ObjectRequest / Response types and specified query parameters and HTTP headers.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      queryParams - Query parameters.
      headers - HTTP headers.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • putObject

      <T> ObjectResponse<T> putObject(String path, ObjectRequest<?> objectRequest, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP PUT request with ObjectRequest / ObjectResponse types.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • putObject

      <T> ObjectResponse<T> putObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP PUT request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP PUT request fails.
    • delete

      <T> org.springframework.http.ResponseEntity<T> delete(String path, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP DELETE request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Parameterized response type.
      Returns:
      HTTP DELETE response.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • delete

      <T> org.springframework.http.ResponseEntity<T> delete(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP DELETE request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      Returns:
      HTTP DELETE response.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • deleteNonBlocking

      <T> void deleteNonBlocking(String path, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP DELETE request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • deleteNonBlocking

      <T> void deleteNonBlocking(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP DELETE request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • deleteObject

      Response deleteObject(String path) throws RestClientException
      Execute a blocking HTTP DELETE request with ObjectRequest / Response types.
      Parameters:
      path - Request path.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • deleteObject

      Response deleteObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers) throws RestClientException
      Execute a blocking HTTP DELETE request with ObjectRequest / Response types and specified query parameters and HTTP headers.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • deleteObject

      <T> ObjectResponse<T> deleteObject(String path, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP DELETE request with ObjectRequest / ObjectResponse types.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • deleteObject

      <T> ObjectResponse<T> deleteObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP DELETE request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP DELETE request fails.
    • patch

      <T> org.springframework.http.ResponseEntity<T> patch(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP PATCH request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      responseType - Parameterized response type.
      Returns:
      HTTP PUT response.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • patch

      <T> org.springframework.http.ResponseEntity<T> patch(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP PATCH request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      Returns:
      HTTP PUT response.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • patchNonBlocking

      <T> void patchNonBlocking(String path, Object request, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP PATCH request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • patchNonBlocking

      <T> void patchNonBlocking(String path, Object request, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP PATCH request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      request - Request object.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • patchObject

      Response patchObject(String path, ObjectRequest<?> objectRequest) throws RestClientException
      Execute a blocking HTTP PATCH request with ObjectRequest / Response types.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • patchObject

      Response patchObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers) throws RestClientException
      Execute a blocking HTTP PATCH request with ObjectRequest / Response types and specified query parameters and HTTP headers.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      queryParams - Query parameters.
      headers - HTTP headers.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • patchObject

      <T> ObjectResponse<T> patchObject(String path, ObjectRequest<?> objectRequest, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP PATCH request with ObjectRequest / ObjectResponse types.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • patchObject

      <T> ObjectResponse<T> patchObject(String path, ObjectRequest<?> objectRequest, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP PATCH request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      objectRequest - Object request.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP PATCH request fails.
    • head

      <T> org.springframework.http.ResponseEntity<T> head(String path, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP HEAD request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Parameterized response type.
      Returns:
      HTTP HEAD response.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.
    • head

      <T> org.springframework.http.ResponseEntity<T> head(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType) throws RestClientException
      Execute a blocking HTTP HEAD request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      Returns:
      HTTP HEAD response.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.
    • headNonBlocking

      <T> void headNonBlocking(String path, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP HEAD request.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.
    • headNonBlocking

      <T> void headNonBlocking(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.core.ParameterizedTypeReference<T> responseType, Consumer<org.springframework.http.ResponseEntity<T>> onSuccess, Consumer<Throwable> onError) throws RestClientException
      Execute a non-blocking HTTP HEAD request with specified HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Parameterized response type.
      onSuccess - Consumer used in case of success.
      onError - Consumer used in case of failure.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.
    • headObject

      Response headObject(String path) throws RestClientException
      Execute a blocking HTTP HEAD request with ObjectRequest / Response types.
      Parameters:
      path - Request path.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.
    • headObject

      Response headObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers) throws RestClientException
      Execute a blocking HTTP HEAD request with ObjectRequest / Response types and specified query parameters and HTTP headers.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      Returns:
      Response.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.
    • headObject

      <T> ObjectResponse<T> headObject(String path, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP HEAD request with ObjectRequest / ObjectResponse types.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.
    • headObject

      <T> ObjectResponse<T> headObject(String path, org.springframework.util.MultiValueMap<String,String> queryParams, org.springframework.util.MultiValueMap<String,String> headers, Class<T> responseType) throws RestClientException
      Execute a blocking HTTP HEAD request with ObjectRequest / ObjectResponse types and specified query parameters and HTTP headers.
      Type Parameters:
      T - Response type.
      Parameters:
      path - Request path.
      queryParams - Query parameters.
      headers - HTTP headers.
      responseType - Object response type.
      Returns:
      Object response.
      Throws:
      RestClientException - Thrown in case HTTP HEAD request fails.