Class LicenseService
- java.lang.Object
-
- com.sodius.oslc.server.security.services.LicenseService
-
public class LicenseService extends Object
Manages the edition of the license by an administrator.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description LicenseService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseaddLicense()ResponsegetLicenseConfiguration()protected StringgetUploadedItemAsString(HttpServletRequest request, String field)Gets an uploaded item by field name.
-
-
-
Method Detail
-
getLicenseConfiguration
public Response getLicenseConfiguration()
-
addLicense
public Response addLicense()
-
getUploadedItemAsString
protected String getUploadedItemAsString(HttpServletRequest request, String field) throws IOException
Gets an uploaded item by field name.- Parameters:
request- the HTTP request.field- the name of the field to look up.- Returns:
- the String representation of the uploaded item if found,
nullotherwise. - Throws:
IOException- if there are problems reading/parsing the request or storing files, or if file item cannot be converted toString.- Since:
- 3.15.1
-
-