Class NetLicensingService

java.lang.Object
com.labs64.netlicensing.service.NetLicensingService

public class NetLicensingService extends Object
Provides generic requests to NetLicensing services. This class is supposed to be used by other **Service classes.
  • Method Details

    • request

      public Netlicensing request(Context context, HttpMethod method, String urlTemplate, Form request, Map<String,String> queryParams) throws NetLicensingException
      Helper method for performing request to NetLicensing API services. Knows about context for the NetLicensing API calls, does authentication, provides error handling based on status of the response.
      Parameters:
      context - context for the NetLicensing API call
      method - the HTTP method to be used, i.e. GET, POST, DELETE
      urlTemplate - the REST URL template
      request - The request body to be sent to the server. May be null.
      queryParams - The REST query parameters values. May be null if there are no parameters.
      Returns:
      Netlicensing response object
      Throws:
      NetLicensingException
    • processResponse

      protected <RES> RES processResponse(MetaInfo[] meta, Netlicensing netlicensing, Class<RES> resultType) throws NetLicensingException
      Throws:
      NetLicensingException