Class AdopterRegistrationSender

java.lang.Object
org.opencastproject.adopter.registration.AdopterRegistrationSender

public class AdopterRegistrationSender extends Object
Contains methods for sending statistic data via rest.
  • Constructor Details

    • AdopterRegistrationSender

      public AdopterRegistrationSender(String statisticServerBaseUrl)
      Simple Constructor that requires the URL of the statistic server.
      Parameters:
      statisticServerBaseUrl - The URL prefix of the statistic server.
  • Method Details

    • sendGeneralData

      public void sendGeneralData(String json) throws IOException
      Executes the 'send' method with the proper REST URL suffix.
      Parameters:
      json - The data which shall be sent.
      Throws:
      IOException - General exception that can occur while sending the data.
    • deleteGeneralData

      public void deleteGeneralData(String json) throws IOException
      Deletes the adopter data
      Parameters:
      json - The data which shall be sent.
      Throws:
      IOException - General exception that can occur while sending the data.
    • sendStatistics

      public void sendStatistics(String json) throws IOException
      Executes the 'send' method with the proper REST URL suffix.
      Parameters:
      json - The data which shall be sent.
      Throws:
      IOException - General exception that can occur while sending the data.
    • sendExtraData

      public void sendExtraData(String key, String json) throws IOException
      Executes the 'send' method with the proper REST URL suffix.
      Parameters:
      key - The key for the extra data.
      json - The data which shall be sent.
      Throws:
      IOException - General exception that can occur while sending the data.
    • deleteStatistics

      public void deleteStatistics(String json) throws IOException
      Deletes the statistics data
      Parameters:
      json - The data which shall be sent.
      Throws:
      IOException - General exception that can occur while sending the data.