Search in sources :

Example 1 with ReloadLocalConfigRequest

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);
}
Also used : ReloadLocalConfigResponse(com.zimbra.soap.admin.message.ReloadLocalConfigResponse) ReloadLocalConfigRequest(com.zimbra.soap.admin.message.ReloadLocalConfigRequest)

Example 2 with ReloadLocalConfigRequest

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);
}
Also used : ReloadLocalConfigResponse(com.zimbra.soap.admin.message.ReloadLocalConfigResponse) SoapProvisioning(com.zimbra.cs.account.soap.SoapProvisioning) LocalConfig(com.zimbra.common.localconfig.LocalConfig) ReloadLocalConfigRequest(com.zimbra.soap.admin.message.ReloadLocalConfigRequest)

Example 3 with ReloadLocalConfigRequest

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);
    }
}
Also used : SoapProvisioning(com.zimbra.cs.account.soap.SoapProvisioning) ReloadLocalConfigRequest(com.zimbra.soap.admin.message.ReloadLocalConfigRequest) SoapHttpTransport(com.zimbra.common.soap.SoapHttpTransport) IOException(java.io.IOException)

Aggregations

ReloadLocalConfigRequest (com.zimbra.soap.admin.message.ReloadLocalConfigRequest)3 SoapProvisioning (com.zimbra.cs.account.soap.SoapProvisioning)2 ReloadLocalConfigResponse (com.zimbra.soap.admin.message.ReloadLocalConfigResponse)2 LocalConfig (com.zimbra.common.localconfig.LocalConfig)1 SoapHttpTransport (com.zimbra.common.soap.SoapHttpTransport)1 IOException (java.io.IOException)1