spider.util
Class Redirections

java.lang.Object
  |
  +--spider.util.Redirections

public class Redirections
extends java.lang.Object

maintains a static datastructure of redirections

Author:
Gautam Pant

Constructor Summary
Redirections()
           
 
Method Summary
static boolean addElement(java.lang.String url1, java.lang.String url2)
          add a redirection entry to the Hashtable
static java.lang.String getLocation(java.lang.String URL)
          get the redirected location
static int size()
          get size of resirections hash
static void toFile(java.lang.String filename)
          write redirection data collected into the given filename
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Redirections

public Redirections()
Method Detail

addElement

public static boolean addElement(java.lang.String url1,
                                 java.lang.String url2)
add a redirection entry to the Hashtable


toFile

public static void toFile(java.lang.String filename)
write redirection data collected into the given filename


getLocation

public static java.lang.String getLocation(java.lang.String URL)
get the redirected location


size

public static int size()
get size of resirections hash