Interface HttpClient
-
public interface HttpClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods 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 Detail
-
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
-
-