use of de.janrufmonitor.service.client.request.handler.CallerListUpdateHandler in project janrufmonitor by tbrandt77.
the class HttpCallerManager method updateCaller.
public void updateCaller(ICaller caller) {
ICallerList cl = this.getRuntime().getCallerFactory().createCallerList();
cl.add(caller);
if (!this.isConnected()) {
this.m_logger.warning("Client is not yet connected with the server.");
return;
}
IRequester r = null;
IHttpResponse resp = null;
r = this.getRequester(new CallerListUpdateHandler(cl, this.getCallerManager()));
resp = r.request();
this.handleRequester(resp, r);
ImageCache.getInstance().remove(caller.getPhoneNumber().getTelephoneNumber());
}
Aggregations