org.encog.bot.browse
Class Address

java.lang.Object
  extended by org.encog.bot.browse.Address

public class Address
extends Object

A URL address. Holds both the URL object, as well as original text.

Author:
jheaton

Constructor Summary
Address(URL u)
          Construct the address from a URL.
Address(URL base, String theOriginal)
          Construct a URL using a perhaps relative URL and a base URL.
 
Method Summary
 String getOriginal()
           
 URL getUrl()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address(URL u)
Construct the address from a URL.

Parameters:
u - The URL to use.

Address

public Address(URL base,
               String theOriginal)
Construct a URL using a perhaps relative URL and a base URL.

Parameters:
base - The base URL.
theOriginal - A full URL or a URL relative to the base.
Method Detail

getOriginal

public final String getOriginal()
Returns:
The original text from this URL.

getUrl

public final URL getUrl()
Returns:
THe URL.

toString

public final String toString()

Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.