public interface URLConnector
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
connect(java.net.URL url)
Connect to the specified URL.
|
TaggedData |
connectTagged(java.net.URL url)
Connect to the specified URL, also returning the ETag if available.
|
TaggedData |
connectTagged(java.net.URL url,
java.lang.String tag)
Connect to the specified URL while providing the last known tag for the
remote resource; the response will be
null if the remote resource
is unchanged. |
java.io.InputStream connect(java.net.URL url)
throws java.io.IOException
url - java.io.IOExceptionTaggedData connectTagged(java.net.URL url) throws java.io.IOException
url - The remote URL.TaggedData; note that the
TaggedData.getTag() method may return
null if the resource has no tag.java.io.IOExceptionTaggedData connectTagged(java.net.URL url, java.lang.String tag) throws java.io.IOException
null if the remote resource
is unchanged.url - The remote URL.tag - The last known tag value for the resource.TaggedData, or null if the
resource has not modified (i.e., if it has the same tag value).java.io.IOException