use of com.zimbra.soap.admin.message.ReloadLocalConfigRequest in project zm-mailbox by Zimbra.
the class SoapTest method modifyLocalconfigAndReload.
static void modifyLocalconfigAndReload(SoapTransport transport, KnownKey key, String value) throws Exception {
LocalconfigTestUtil.modifyLocalConfig(key, value);
// reload LC on server
ReloadLocalConfigRequest req = new ReloadLocalConfigRequest();
ReloadLocalConfigResponse resp = invokeJaxb(transport, req);
}
use of com.zimbra.soap.admin.message.ReloadLocalConfigRequest in project zm-mailbox by Zimbra.
the class TestUtil method setLCValue.
protected static void setLCValue(KnownKey key, String newValue) throws DocumentException, ConfigException, IOException, ServiceException {
LocalConfig lc = new LocalConfig(null);
if (newValue == null) {
lc.remove(key.key());
} else {
lc.set(key.key(), newValue);
}
lc.save();
SoapProvisioning prov = TestUtil.newSoapProvisioning();
ReloadLocalConfigRequest req = new ReloadLocalConfigRequest();
ReloadLocalConfigResponse resp = prov.invokeJaxb(req);
assertNotNull("ReloadLocalConfigResponse", resp);
}
use of com.zimbra.soap.admin.message.ReloadLocalConfigRequest in project zm-mailbox by Zimbra.
the class LocalConfigCLI method reload.
private void reload() throws ServiceException {
String host = LC.zimbra_zmprov_default_soap_server.value();
int port = LC.zimbra_admin_service_port.intValue();
SoapHttpTransport transport = new SoapHttpTransport("https://" + host + ":" + port + AdminConstants.ADMIN_SERVICE_URI);
SoapProvisioning prov = new SoapProvisioning();
prov.soapSetURI(transport.getURI());
prov.soapZimbraAdminAuthenticate();
transport.setAuthToken(prov.getAuthToken());
try {
transport.invoke(JaxbUtil.jaxbToElement(new ReloadLocalConfigRequest()));
} catch (IOException e) {
throw ZClientException.IO_ERROR(e.getMessage(), e);
}
}
Aggregations