title: Java, let CookieHandler work on only one instance
body: <p>I don't know how CookieHandler works system wide, I did view the source of CookieHandler but found no more information except the get/set methods. Where do TCP/HTTP connections use instance of CookieHandler, which I set by</p>
  
  <pre><code>CookieHandler.setDefault(...)
  </code></pre>
  
  <p>Which source file I should refer to? <code>URLConnection</code> &amp; <code>HttpURLConnection</code> don't seem have things to do with it.</p>
  
  <p>Help, thanks in advance.
  <hr />
  <strong>Edit:</strong>
  Is it possible to apply CookieHandler to only one instance in which <code>setDefault</code> is invoked.</p>