SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework.crawler.web.parse
Class Outlink

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.crawler.web.parse.Outlink

public class Outlink
extends java.lang.Object

An outgoing link from a page.


Constructor Summary
Outlink()
          Empty constructor.
Outlink(java.lang.String urlString, java.lang.String anchor, Configuration conf)
          Creates new OutLink.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 java.lang.String getAnchor()
          Returns text anchor associated with the link.
static int getDefaultPortNumber(java.lang.String protocol)
          Returns the default port number for the specified protocol.
 java.net.URL getUrl()
          Returns url of the link.
 java.lang.String getUrlString()
          Returns url of the link.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Outlink

public Outlink()
Empty constructor.


Outlink

public Outlink(java.lang.String urlString,
               java.lang.String anchor,
               Configuration conf)
        throws java.net.MalformedURLException
Creates new OutLink.

Parameters:
urlString - URL of the link.
anchor - text anchor that is associated with this link
conf - crawler configuration
Throws:
java.net.MalformedURLException - if URL is broken
java.net.URISyntaxException
URIException
URIException
Method Detail

getUrlString

public java.lang.String getUrlString()
Returns url of the link.

Returns:
String

getAnchor

public java.lang.String getAnchor()
Returns text anchor associated with the link.

Returns:
String

getUrl

public java.net.URL getUrl()
Returns url of the link.

Returns:
URL

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

getDefaultPortNumber

public static int getDefaultPortNumber(java.lang.String protocol)
Returns the default port number for the specified protocol.

Parameters:
protocol - a particular access protocol
Returns:
default port number

SMILA 1.0 API documentation