• Post Reply Bookmark Topic Watch Topic
  • New Topic

what's the use of CookieHandler.setDefault()?  RSS feed

 
Winston Liek
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really don't understand what does it do... When I execute it does it apply to all succeeding http request? Can someone please give me their idea what does it do. TIA
 
Knute Snortum
Sheriff
Posts: 4276
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to use this code or are you seeing it somewhere and want to know what it's doing? If you're seeing CookieHandler.setDefault(); exactly, I would say it's unsetting the system-wide cookie handler.

A CookieHandler is a callback (method) that is used to, well, handle cookies. It is system-wide, so yes, it affects subsequent calls.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!