Package org.lockss.laaws.config.client
Class BaseClient
java.lang.Object
org.lockss.laaws.config.client.BaseClient
- Direct Known Subclasses:
DeleteAusAuidClient,GetAusAuidClient,GetAusClient,GetConfigLastupdatetimeClient,GetConfigLoadedurlsClient,GetConfigSnidClient,GetStatusClient,PutAusAuidClient,PutConfigReloadClient,PutConfigSnidClient
A base client for all of the LAAWS-Config web service operations.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.springframework.http.HttpHeadersProvides the basic HTTP headers to be used in a request.protected static org.springframework.web.client.RestTemplateProvides a RestTemplate that does not throw exceptions when the received status code is not 2xx.
-
Field Details
-
baseUri
- See Also:
-
-
Constructor Details
-
BaseClient
public BaseClient()
-
-
Method Details
-
getRestTemplate
protected static org.springframework.web.client.RestTemplate getRestTemplate()Provides a RestTemplate that does not throw exceptions when the received status code is not 2xx.- Returns:
- a RestTemplate that does not throw exceptions when the received status code is not 2xx.
-
getHttpHeaders
protected static org.springframework.http.HttpHeaders getHttpHeaders()Provides the basic HTTP headers to be used in a request.- Returns:
- a HttpHeaders with the Basic Authorization and Content Type headers.
-