mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-27 21:39:15 +00:00
26 lines
775 B
Java
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");
|
|
}
|
|
} |