com.ldodds.slug.http
Class URLTaskImpl
java.lang.Object
com.ldodds.slug.http.URLTaskImpl
- All Implemented Interfaces:
- Task, URLTask
- public class URLTaskImpl
- extends java.lang.Object
- implements URLTask
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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()