Search in sources :

Example 1 with CallerListUpdateHandler

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());
}
Also used : ICallerList(de.janrufmonitor.framework.ICallerList) IRequester(de.janrufmonitor.service.commons.http.IRequester) CallerListUpdateHandler(de.janrufmonitor.service.client.request.handler.CallerListUpdateHandler) IHttpResponse(de.janrufmonitor.service.commons.http.IHttpResponse)

Aggregations

ICallerList (de.janrufmonitor.framework.ICallerList)1 CallerListUpdateHandler (de.janrufmonitor.service.client.request.handler.CallerListUpdateHandler)1 IHttpResponse (de.janrufmonitor.service.commons.http.IHttpResponse)1 IRequester (de.janrufmonitor.service.commons.http.IRequester)1