NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Get License
editGet License
editExecution
editThe license can be added or updated using the getLicense()
method:
GetLicenseRequest request = new GetLicenseRequest(); GetLicenseResponse response = client.license().getLicense(request, RequestOptions.DEFAULT);
Response
editThe returned GetLicenseResponse
contains the license in the JSON format.
Asynchronous Execution
editThis request can be executed asynchronously:
The asynchronous method does not block and returns immediately. Once it is
completed the ActionListener
is called back using the onResponse
method
if the execution successfully completed or using the onFailure
method if
it failed.
A typical listener for GetLicenseResponse
looks like: