Class AdopterRegistrationSender
java.lang.Object
org.opencastproject.adopter.registration.AdopterRegistrationSender
Contains methods for sending statistic data via rest.
-
Constructor Summary
ConstructorsConstructorDescriptionAdopterRegistrationSender(String statisticServerBaseUrl) Simple Constructor that requires the URL of the statistic server. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteGeneralData(String json) Deletes the adopter datavoiddeleteStatistics(String json) Deletes the statistics datavoidsendExtraData(String key, String json) Executes the 'send' method with the proper REST URL suffix.voidsendGeneralData(String json) Executes the 'send' method with the proper REST URL suffix.voidsendStatistics(String json) Executes the 'send' method with the proper REST URL suffix.
-
Constructor Details
-
AdopterRegistrationSender
Simple Constructor that requires the URL of the statistic server.- Parameters:
statisticServerBaseUrl- The URL prefix of the statistic server.
-
-
Method Details
-
sendGeneralData
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
Deletes the adopter data- Parameters:
json- The data which shall be sent.- Throws:
IOException- General exception that can occur while sending the data.
-
sendStatistics
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
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
Deletes the statistics data- Parameters:
json- The data which shall be sent.- Throws:
IOException- General exception that can occur while sending the data.
-