Interface HttpClient


public interface HttpClient
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<String>
    call(org.springframework.http.HttpMethod httpMethod, String resource, org.springframework.http.HttpEntity<?> input)
     
    default org.springframework.http.ResponseEntity<String>
    delete(String resource, org.springframework.util.MultiValueMap<String,String> headers)
     
    default org.springframework.http.ResponseEntity<String>
    get(String resource, org.springframework.util.MultiValueMap<String,String> headers)
     
    default org.springframework.http.ResponseEntity<String>
    patch(String resource, Object body, org.springframework.util.MultiValueMap<String,String> headers)
     
    default org.springframework.http.ResponseEntity<String>
    post(String resource, Object body, org.springframework.util.MultiValueMap<String,String> headers)
     
    default org.springframework.http.ResponseEntity<String>
    put(String resource, Object body, org.springframework.util.MultiValueMap<String,String> headers)
     
  • Method Details

    • call

      org.springframework.http.ResponseEntity<String> call(org.springframework.http.HttpMethod httpMethod, String resource, org.springframework.http.HttpEntity<?> input) throws org.springframework.web.client.HttpClientErrorException
      Throws:
      org.springframework.web.client.HttpClientErrorException
    • post

      default org.springframework.http.ResponseEntity<String> post(String resource, Object body, org.springframework.util.MultiValueMap<String,String> headers) throws org.springframework.web.client.HttpClientErrorException
      Throws:
      org.springframework.web.client.HttpClientErrorException
    • put

      default org.springframework.http.ResponseEntity<String> put(String resource, Object body, org.springframework.util.MultiValueMap<String,String> headers) throws org.springframework.web.client.HttpClientErrorException
      Throws:
      org.springframework.web.client.HttpClientErrorException
    • get

      default org.springframework.http.ResponseEntity<String> get(String resource, org.springframework.util.MultiValueMap<String,String> headers) throws org.springframework.web.client.HttpClientErrorException
      Throws:
      org.springframework.web.client.HttpClientErrorException
    • delete

      default org.springframework.http.ResponseEntity<String> delete(String resource, org.springframework.util.MultiValueMap<String,String> headers) throws org.springframework.web.client.HttpClientErrorException
      Throws:
      org.springframework.web.client.HttpClientErrorException
    • patch

      default org.springframework.http.ResponseEntity<String> patch(String resource, Object body, org.springframework.util.MultiValueMap<String,String> headers) throws org.springframework.web.client.HttpClientErrorException
      Throws:
      org.springframework.web.client.HttpClientErrorException