Enterprise Information Portal APIs

com.ibm.gcs.netutil.http
Class GCSHttpCookieDB

java.lang.Object
  |
  +--com.ibm.gcs.netutil.http.GCSHttpCookieDB

public class GCSHttpCookieDB
extends java.lang.Object


Constructor Summary
GCSHttpCookieDB()
           
 
Method Summary
static void addCookie(java.lang.String name, java.lang.String value, java.util.HashMap cookieAttributes)
           
static boolean domainMatches(java.lang.String hostA, java.lang.String hostB)
           
static java.lang.String getCookieHeaderValue(java.net.URL url)
          Should be called before each http transaction.
static boolean isFQDN(java.lang.String s)
           
static boolean isFQHN(java.lang.String s)
           
static boolean isIP(java.lang.String s)
           
static boolean isValidCookie(java.lang.String name, java.lang.String value, java.util.HashMap cookieAttributes, java.net.URL url)
           
static void update(java.lang.String setCookieHeaderFieldValue, java.net.URL url)
          Updates the cookie data base with a new cookie
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCSHttpCookieDB

public GCSHttpCookieDB()
Method Detail

getCookieHeaderValue

public static java.lang.String getCookieHeaderValue(java.net.URL url)
Should be called before each http transaction. It will return any appropriate cookie headers as a string for the cookie value.

update

public static void update(java.lang.String setCookieHeaderFieldValue,
                          java.net.URL url)
Updates the cookie data base with a new cookie

isValidCookie

public static boolean isValidCookie(java.lang.String name,
                                    java.lang.String value,
                                    java.util.HashMap cookieAttributes,
                                    java.net.URL url)

addCookie

public static void addCookie(java.lang.String name,
                             java.lang.String value,
                             java.util.HashMap cookieAttributes)

domainMatches

public static boolean domainMatches(java.lang.String hostA,
                                    java.lang.String hostB)

isFQDN

public static boolean isFQDN(java.lang.String s)

isIP

public static boolean isIP(java.lang.String s)

isFQHN

public static boolean isFQHN(java.lang.String s)

EIP Web Crawler APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.