|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.util.http.CookieUtility
public class CookieUtility
This class allows URLConnection objects to process cookies. The loadCookies method grabs the Set-Cookie headers and loads the cookies into the map. The saveCookies method writes out the cookie map to the a URLConnection object as Cookie headers.
Constructor Summary | |
---|---|
CookieUtility()
|
Method Summary | |
---|---|
Map<String,String> |
getMap()
Allows access to the name/value pair list of cookies. |
void |
loadCookies(URLConnection http)
Load any cookies from the specified URLConnection object. |
void |
saveCookies(URLConnection http)
Once you have loaded cookies with loadCookies, you can call saveCookies to copy these cookies to a new HTTP request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CookieUtility()
Method Detail |
---|
public Map<String,String> getMap()
public void loadCookies(URLConnection http)
http
- The URLConnection object to load the cookies from.public void saveCookies(URLConnection http)
http
- The URLConnection object to add cookies to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |