Files
palemoon27/mobile/android/base/reading/ReadingListResponse.java
T
2018-07-24 23:11:02 +08:00

26 lines
775 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.goanna.reading;
import org.mozilla.goanna.sync.net.MozResponse;
import ch.boye.httpclientandroidlib.HttpResponse;
/**
* A MozResponse that knows about all of the general RL-related headers, like Last-Modified.
*/
public abstract class ReadingListResponse extends MozResponse {
static interface ResponseFactory<T extends ReadingListResponse> {
public T getResponse(HttpResponse r);
}
public ReadingListResponse(HttpResponse res) {
super(res);
}
public long getLastModified() {
return getLongHeader("Last-Modified");
}
}