com.ldodds.slug.http
Class URLTaskImpl

java.lang.Object
  extended bycom.ldodds.slug.http.URLTaskImpl
All Implemented Interfaces:
Task, URLTask

public class URLTaskImpl
extends java.lang.Object
implements URLTask


Constructor Summary
URLTaskImpl(java.net.URL url)
           
URLTaskImpl(java.net.URL url, int depth)
           
URLTaskImpl(URLTask task, java.net.URL url)
           
 
Method Summary
 int getDepth()
           
 java.lang.String getName()
           
 java.net.URL getURL()
           
 java.net.HttpURLConnection openConnection()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLTaskImpl

public URLTaskImpl(java.net.URL url)

URLTaskImpl

public URLTaskImpl(URLTask task,
                   java.net.URL url)

URLTaskImpl

public URLTaskImpl(java.net.URL url,
                   int depth)
Method Detail

getURL

public java.net.URL getURL()
Specified by:
getURL in interface URLTask

getName

public java.lang.String getName()
Specified by:
getName in interface Task

getDepth

public int getDepth()
Specified by:
getDepth in interface URLTask

openConnection

public java.net.HttpURLConnection openConnection()
                                          throws java.io.IOException
Specified by:
openConnection in interface URLTask
Throws:
java.io.IOException

toString

public java.lang.String toString()