public synchronized void cancel(Object tag) { Iterator<AsyncCall> i = this.readyCalls.iterator(); while (i.hasNext()) { if (Util.equal(tag, ((AsyncCall) i.next()).tag())) { i.remove(); } } for (AsyncCall call : this.runningCalls) { if (Util.equal(tag, call.tag())) { call.get().canceled = true; HttpEngine engine = call.get().engine; if (engine != null) { engine.disconnect(); } } } }
public boolean equals(Object paramObject) { return ((paramObject instanceof Challenge)) && (Util.equal(this.scheme, ((Challenge) paramObject).scheme)) && (Util.equal(this.realm, ((Challenge) paramObject).realm)); }