collector
Class Site

java.lang.Object
  |
  +--collector.Site

public class Site
extends java.lang.Object


Field Summary
 java.util.Vector baseURLs
           
 
Constructor Summary
Site(java.lang.String dirFile)
           
 
Method Summary
 void addStopURL(java.lang.String substr)
          Specifica un elemento per la stop-list degli URLs.
 java.lang.String fullURL(java.net.URL base, java.lang.String relative)
          Costruisce un URL completamente specificato a partire da un URL base ed un URL relativo.
 boolean isEmpty()
          tells whether the site was properly contructed
 boolean isInternal(java.lang.String url)
           
 boolean isStopped(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseURLs

public java.util.Vector baseURLs
Constructor Detail

Site

public Site(java.lang.String dirFile)
Method Detail

isEmpty

public boolean isEmpty()
tells whether the site was properly contructed

addStopURL

public void addStopURL(java.lang.String substr)
Specifica un elemento per la stop-list degli URLs.

isInternal

public boolean isInternal(java.lang.String url)
Returns:
true if URL belongs to an index site.

isStopped

public boolean isStopped(java.lang.String url)
Returns:
true if any of the strings in the stop-list appears as substring in the URL.

fullURL

public java.lang.String fullURL(java.net.URL base,
                                java.lang.String relative)
Costruisce un URL completamente specificato a partire da un URL base ed un URL relativo.