|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.feedparser.network.URLCookieManager
public class URLCookieManager
By default java.net.URL does NOT handle cookies. This is a simple extension that allows us to persist cookies in the VM during runtime. FIXME: How can we make sure to delete older sites...?! no need for this to grow to infinite size.
Constructor Summary | |
---|---|
URLCookieManager()
|
Method Summary | |
---|---|
static Hashtable |
getCookies(String site)
Get the cookies for a site. |
static String |
getCookiesHeader(Hashtable cookies)
Parse a given Cookie header into a hashtable. |
static String |
getSite(ResourceRequest request)
|
static void |
init(ResourceRequest request)
Add cookies to this request and perform any other init. |
static void |
main(String[] args)
|
static Hashtable |
parseCookieHeader(String header)
Parse a given Cookie header into a hashtable. |
static void |
save(ResourceRequest request)
Save the cookies FROM this request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLCookieManager()
Method Detail |
---|
public static Hashtable getCookies(String site)
public static void init(ResourceRequest request)
public static String getSite(ResourceRequest request)
public static void save(ResourceRequest request)
public static String getCookiesHeader(Hashtable cookies)
public static Hashtable parseCookieHeader(String header)
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |