use of com.zimbra.soap.admin.message.GetDomainInfoResponse in project zm-mailbox by Zimbra.
the class ZSoapProvisioning method getDomainInfo.
public ZDomain getDomainInfo(DomainBy keyType, String key) throws ServiceException {
DomainSelector domSel = new DomainSelector(toJaxb(keyType), key);
try {
GetDomainInfoResponse resp = invokeJaxb(new GetDomainInfoRequest(domSel, null));
DomainInfo domainInfo = resp.getDomain();
return domainInfo == null ? null : new ZDomain(domainInfo);
} catch (ServiceException e) {
if (e.getCode().equals(Constants.ERROR_CODE_NO_SUCH_DOMAIN))
return null;
else
throw e;
}
}
use of com.zimbra.soap.admin.message.GetDomainInfoResponse in project zm-mailbox by Zimbra.
the class SoapProvisioning method getDomainInfo.
public Domain getDomainInfo(DomainBy keyType, String key) throws ServiceException {
DomainSelector domSel = new DomainSelector(toJaxb(keyType), key);
try {
GetDomainInfoResponse resp = invokeJaxb(new GetDomainInfoRequest(domSel, null));
DomainInfo domainInfo = resp.getDomain();
return domainInfo == null ? null : new SoapDomain(domainInfo, this);
} catch (ServiceException e) {
if (e.getCode().equals(Constants.ERROR_CODE_NO_SUCH_DOMAIN))
return null;
else
throw e;
}
}
Aggregations