|
NOTA: La traducción de esta documentación es un esfuerzo personal y voluntario, no es un documento oficial de Sun Microsystems
ni Oracle ni está patrocinado por ninguna de estas empresas. Los documentos originales (en inglés) están disponibles en:
http://java.sun.com/docs/books/tutorial/.
Dirija cualquier comentario, petición, felicitación, etc. a tutorialesjava_@RROBA_codexion.com. |
Si desea ayudar a mantener en funcionamiento esta web, colaborar con la traducción de estos documentos o necesita que se traduzca algĂșn capĂtulo en concreto puede realizar una donación directa mediante Paypal:
|
Though you are probably already familiar with cookies, you might not know how to take advantage of them in your Java application. This lesson guides you through the concept of cookies and explains how to set a cookie handler so that your HTTP URL connections will use it.Java SE provides one main class for this functionality,
java.net.CookieHandler, and the following supporting classes and interfaces:java.net.CookieManager,java.net.CookiePolicy,java.net.CookieStore, andjava.net.HttpCookie.HTTP State Management With Cookies
This page describes cookies and explains how they are used to provide sessions.CookieHandler Callback Mechanism
This page explains how a cookie handler is called when you access a web site and how to set a cookie handler.Default CookieManager
Java SE provides a default cookie handler implementation that is sufficient in most cases and highly customizable.Custom CookieManager
Here are some examples of how to customize the cookie policy and write your own cookie store.