Ontimize 5.2072EN

com.ontimize.util.rmitunneling
Class CookieUtilities

java.lang.Object
  extended bycom.ontimize.util.rmitunneling.CookieUtilities

public class CookieUtilities
extends java.lang.Object


Field Summary
static java.util.Map cookie
           
 
Constructor Summary
CookieUtilities()
           
 
Method Summary
static void retrieveCookies(java.net.URLConnection connection)
           
static void setCookies(java.net.URLConnection conn)
          Prior to opening a URLConnection, calling this method will set all unexpired cookies that match the path or subpaths for thi underlying URL The connection MUST NOT have been opened method or an IOException will be thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cookie

public static java.util.Map cookie
Constructor Detail

CookieUtilities

public CookieUtilities()
Method Detail

retrieveCookies

public static void retrieveCookies(java.net.URLConnection connection)

setCookies

public static void setCookies(java.net.URLConnection conn)
                       throws java.lang.Exception
Prior to opening a URLConnection, calling this method will set all unexpired cookies that match the path or subpaths for thi underlying URL The connection MUST NOT have been opened method or an IOException will be thrown.

Parameters:
conn - a java.net.URLConnection - must NOT be open, or IOException will be thrown
Throws:
java.io.IOException - Thrown if conn has already been opened.
java.lang.Exception

Ontimize