public interface URLConnector
| Modifier and Type | Method and Description |
|---|---|
InputStream |
connect(URL url)
Connect to the specified URL.
|
TaggedData |
connectTagged(URL url)
Connect to the specified URL, also returning the ETag if available.
|
TaggedData |
connectTagged(URL url,
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. |
InputStream connect(URL url) throws IOException, Exception
url - IOExceptionExceptionTaggedData connectTagged(URL url) throws Exception
url - The remote URL.TaggedData; note that the
TaggedData.getTag() method may return
null if the resource has no tag.IOException - @since 1.1ExceptionTaggedData connectTagged(URL url, String tag) throws 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).IOException - @since 1.1ExceptionCopyright © 2019 aQute SARL. All rights reserved.