Class RestClient

java.lang.Object
org.jdrupes.keycloak.moodleauth.moodle.RestClient
All Implemented Interfaces:
AutoCloseable

public class RestClient extends Object implements AutoCloseable
A class for invoking REST services.
  • Field Details

    • mapper

      protected static final com.fasterxml.jackson.databind.ObjectMapper mapper
  • Constructor Details

    • RestClient

      public RestClient(URI uri, Map<String,Object> defaultParams)
      Instantiates a new rest client.
      Parameters:
      uri - the uri
      defaultParams - the default params
    • RestClient

      public RestClient(URI uri)
      Instantiates a new rest client.
      Parameters:
      uri - the uri
  • Method Details