use of com.zimbra.soap.admin.message.GetLicenseInfoResponse in project zm-mailbox by Zimbra.
the class GetLicenseInfo method handle.
@Override
public Element handle(Element request, Map<String, Object> context) throws ServiceException {
ZimbraSoapContext lc = getZimbraSoapContext(context);
String expirationDate = LC.get(TRIAL_EXPIRATION_DATE_KEY);
LicenseExpirationInfo expirationInfo = new LicenseExpirationInfo(expirationDate);
GetLicenseInfoResponse resp = new GetLicenseInfoResponse(expirationInfo);
return lc.jaxbToElement(resp);
}
use of com.zimbra.soap.admin.message.GetLicenseInfoResponse in project zm-mailbox by Zimbra.
the class TestJaxbProvisioning method testLicenseInfo.
@Test
public void testLicenseInfo() throws Exception {
ZimbraLog.test.debug("Starting testLicenseInfo");
GetLicenseInfoRequest req = new GetLicenseInfoRequest();
GetLicenseInfoResponse resp = prov.invokeJaxb(req);
assertNotNull("GetLicensInfoResponse", resp);
LicenseExpirationInfo expires = resp.getExpiration();
assertNotNull("Expiration Info", expires);
assertNotNull("getDate result", expires.getDate());
}
Aggregations