|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.addressbook.SubscriptionList
public class SubscriptionList
A list of Subscriptions loaded from a file.
Constructor Summary | |
---|---|
SubscriptionList(File locationsFile,
File etagsFile,
File lastModifiedFile,
List defaultSubs,
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. |
Method Summary | |
---|---|
SubscriptionIterator |
iterator()
Return an iterator over the AddressBooks represented by the Subscriptions in this SubscriptionList. |
void |
write()
Write the etag and last-modified headers for each Subscription to files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubscriptionList(File locationsFile, File etagsFile, File lastModifiedFile, List defaultSubs, 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".defaultSubs
- default subscription fileproxyHost
- proxy hostnameproxyPort
- proxy port numberMethod Detail |
---|
public SubscriptionIterator iterator()
public void write()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |