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, java.lang.Exception
url
- java.io.IOException
java.lang.Exception
TaggedData connectTagged(java.net.URL url) throws java.lang.Exception
url
- The remote URL.TaggedData
; note that the
TaggedData.getTag()
method may return
null
if the resource has no tag.java.io.IOException
- @since 1.1java.lang.Exception
TaggedData connectTagged(java.net.URL url, java.lang.String tag) throws java.lang.Exception
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
- @since 1.1java.lang.Exception