public class RestTemplateRemoteAuthClient extends Object implements RemoteAuthClient
RemoteAuthClient
by using RestTemplate
as client.Constructor and Description |
---|
RestTemplateRemoteAuthClient(org.springframework.web.client.RestTemplate restTemplate) |
Modifier and Type | Method and Description |
---|---|
static RestTemplateRemoteAuthClient |
createInstance(org.springframework.boot.web.client.RestTemplateBuilder builder,
String gbifApiUrl) |
org.springframework.http.ResponseEntity<String> |
remoteAuth(String path,
org.springframework.http.HttpHeaders headers) |
public RestTemplateRemoteAuthClient(org.springframework.web.client.RestTemplate restTemplate)
public org.springframework.http.ResponseEntity<String> remoteAuth(String path, org.springframework.http.HttpHeaders headers)
remoteAuth
in interface RemoteAuthClient
public static RestTemplateRemoteAuthClient createInstance(org.springframework.boot.web.client.RestTemplateBuilder builder, String gbifApiUrl)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.