Files
firefox/mobile/android/base/sync/net/HttpResponseObserver.java
T
Nick Alexander 165fbc34b2 Bug 1140812 - React to Backoff and Retry-After headers from Reading List storage servers. r=rnewman
========

https://github.com/mozilla-services/android-sync/commit/cd7edfa0b5d3ee8c4344af1183c6e31a584757ef
Author: Nick Alexander <[email protected]>
    Bug 1140812 - Part 3: React to Backoff and Retry-After headers.

========

https://github.com/mozilla-services/android-sync/commit/8581f5a572d387f7540088210a5b745574dcf6af
Author: Nick Alexander <[email protected]>
Date:   Fri Mar 27 15:30:33 2015 -0700

    Bug 1140812 - Part 2: Include request in HTTP response observation callbacks.

    This allows to only handle responses from certain hosts.

========

https://github.com/mozilla-services/android-sync/commit/05b50325dbd262bd69df27f1ed023ecca250cc8a
Author: Nick Alexander <[email protected]>
Date:   Fri Mar 27 14:47:38 2015 -0700

    Bug 1140812 - Part 1: Generalize from one to many HTTP response observers.

    CopyOnWriteArrayList is a reasonable choice here: we have few writes but
    many iterations.  See
    http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CopyOnWriteArrayList.html

========

https://github.com/mozilla-services/android-sync/commit/5950219343910cbf9921f0e232562ab2d12b2387
Author: Nick Alexander <[email protected]>
Date:   Fri Mar 27 16:04:07 2015 -0700

    Bug 1140812 - Pre: Modernize backoffInSeconds.

    Sync uses X-Backoff; newer services, including Reading List, use Backoff.
2015-03-27 16:01:36 -07:00

21 lines
703 B
Java

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.gecko.sync.net;
import ch.boye.httpclientandroidlib.HttpResponse;
import ch.boye.httpclientandroidlib.client.methods.HttpUriRequest;
public interface HttpResponseObserver {
/**
* Observe an HTTP response.
* @param request
* The <code>HttpUriRequest<code> that elicited the response.
*
* @param response
* The <code>HttpResponse</code> to observe.
*/
public void observeHttpResponse(HttpUriRequest request, HttpResponse response);
}