java.lang.Iterable<AddressBook>
class SubscriptionList extends java.lang.Object implements java.lang.Iterable<AddressBook>
コンストラクタ | 説明 |
---|---|
SubscriptionList(java.io.File locationsFile,
java.io.File etagsFile,
java.io.File lastModifiedFile,
java.io.File lastFetchedFile,
long delay,
java.util.List<java.lang.String> defaultSubs,
java.lang.String proxyHost,
int proxyPort) |
Construct a SubscriptionList using the urls from locationsFile and, if
available, the etags and last-modified headers loaded from etagsFile and
lastModifiedFile.
|
SubscriptionList(java.lang.String hoststxt) |
Testing only.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
SubscriptionIterator |
iterator() |
Return an iterator over the AddressBooks represented by the Subscriptions
in this SubscriptionList.
|
void |
write() |
Write the etag and last-modified headers,
and the last-fetched time, for each Subscription to files.
|
public SubscriptionList(java.io.File locationsFile, java.io.File etagsFile, java.io.File lastModifiedFile, java.io.File lastFetchedFile, long delay, java.util.List<java.lang.String> defaultSubs, java.lang.String proxyHost, int proxyPort)
locationsFile
- A file containing one url on each line.etagsFile
- A file containg the etag headers used for conditional GET. The
file is in the format "url=etag".lastModifiedFile
- A file containg the last-modified headers used for conditional
GET. The file is in the format "url=leastmodified".delay
- the minimum delay since last fetched for the iterator to actually fetchdefaultSubs
- default subscription fileproxyHost
- proxy hostnameproxyPort
- proxy port numberpublic SubscriptionList(java.lang.String hoststxt)
hoststxt
- path to a local file used as the test 'subscription' inputpublic SubscriptionIterator iterator()
iterator
インタフェース内 java.lang.Iterable<AddressBook>
public void write()