pt.tumba.parser
Class URLUtils

java.lang.Object
  extended by pt.tumba.parser.URLUtils

public class URLUtils
extends java.lang.Object

Description of the Class

Author:
Bruno Martins

Field Summary
private static URLUtils _theInstance
           
 
Constructor Summary
private URLUtils()
           
 
Method Summary
static boolean chechHost(java.net.URL url, java.lang.String host)
          Description of the Method
static boolean checkHomePage(java.lang.String urlstr2)
          Description of the Method
static boolean checkHomePage(java.net.URL url)
          Description of the Method
static boolean checkHost(java.net.URL url, java.util.Iterator hosts)
          Description of the Method
static URLUtils getInstance()
           
static java.net.URL normalizeURL(java.lang.String aux)
          Description of the Method
static java.net.URL normalizeURL(java.lang.String base2, java.lang.String aux)
          Description of the Method
static java.net.URL normalizeURL(java.net.URL aux)
          Description of the Method
static java.net.URL normalizeURL(java.net.URL base, java.lang.String aux)
          Description of the Method
static java.lang.String relativeURL(java.net.URL base, java.net.URL target)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_theInstance

private static final URLUtils _theInstance
Constructor Detail

URLUtils

private URLUtils()
Method Detail

chechHost

public static boolean chechHost(java.net.URL url,
                                java.lang.String host)
Description of the Method

Parameters:
url - Description of the Parameter
host - Description of the Parameter
Returns:
Description of the Return Value

checkHomePage

public static boolean checkHomePage(java.lang.String urlstr2)
Description of the Method

Parameters:
urlstr - Description of the Parameter
Returns:
Description of the Return Value

checkHomePage

public static boolean checkHomePage(java.net.URL url)
Description of the Method

Parameters:
url - Description of the Parameter
Returns:
Description of the Return Value

checkHost

public static boolean checkHost(java.net.URL url,
                                java.util.Iterator hosts)
Description of the Method

Parameters:
url - Description of the Parameter
hosts - Description of the Parameter
Returns:
Description of the Return Value

getInstance

public static URLUtils getInstance()

normalizeURL

public static java.net.URL normalizeURL(java.lang.String aux)
Description of the Method

Parameters:
aux - Description of the Parameter
Returns:
Description of the Return Value

normalizeURL

public static java.net.URL normalizeURL(java.lang.String base2,
                                        java.lang.String aux)
Description of the Method

Parameters:
base - Description of the Parameter
aux - Description of the Parameter
Returns:
Description of the Return Value

normalizeURL

public static java.net.URL normalizeURL(java.net.URL aux)
Description of the Method

Parameters:
aux - Description of the Parameter
Returns:
Description of the Return Value

normalizeURL

public static java.net.URL normalizeURL(java.net.URL base,
                                        java.lang.String aux)
Description of the Method

Parameters:
base - Description of the Parameter
aux - Description of the Parameter
Returns:
Description of the Return Value

relativeURL

public static java.lang.String relativeURL(java.net.URL base,
                                           java.net.URL target)
Description of the Method

Parameters:
base - Description of the Parameter
target - Description of the Parameter
Returns:
Description of the Return Value