SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework.crawler.web.net
Class BasicUrlNormalizer

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.crawler.web.configuration.Configured
      extended by org.eclipse.smila.connectivity.framework.crawler.web.net.BasicUrlNormalizer
All Implemented Interfaces:
Configurable, UrlNormalizer

public class BasicUrlNormalizer
extends Configured
implements UrlNormalizer

Converts URLs to a normal form .


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.framework.crawler.web.configuration.Configured
_configuration
 
Constructor Summary
BasicUrlNormalizer()
          Class that is used to convert URLs to normal form.
 
Method Summary
 java.lang.String normalize(java.lang.String urlString)
          Returns normalized URL.
 
Methods inherited from class org.eclipse.smila.connectivity.framework.crawler.web.configuration.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.smila.connectivity.framework.crawler.web.net.UrlNormalizer
getConf, setConf
 

Constructor Detail

BasicUrlNormalizer

public BasicUrlNormalizer()
Class that is used to convert URLs to normal form.

Method Detail

normalize

public java.lang.String normalize(java.lang.String urlString)
                           throws java.net.MalformedURLException
Returns normalized URL.

Specified by:
normalize in interface UrlNormalizer
Parameters:
urlString - String
Returns:
String
Throws:
java.net.MalformedURLException - if given URL was broken.

SMILA (incubation) API documentation