Class BaseClient

java.lang.Object
org.lockss.laaws.config.client.BaseClient
Direct Known Subclasses:
DeleteAusAuidClient, GetAusAuidClient, GetAusClient, GetConfigLastupdatetimeClient, GetConfigLoadedurlsClient, GetConfigSnidClient, GetStatusClient, PutAusAuidClient, PutConfigReloadClient, PutConfigSnidClient

public class BaseClient extends Object
A base client for all of the LAAWS-Config web service operations.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static org.springframework.http.HttpHeaders
    Provides the basic HTTP headers to be used in a request.
    protected static org.springframework.web.client.RestTemplate
    Provides a RestTemplate that does not throw exceptions when the received status code is not 2xx.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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.