Package aQute.bnd.service.url
Interface URLConnector
- All Known Implementing Classes:
HttpClient
public interface URLConnector
-
Method Summary
Modifier and TypeMethodDescriptionConnect to the specified URL.connectTagged
(URL url) Connect to the specified URL, also returning the ETag if available.connectTagged
(URL url, String tag) Connect to the specified URL while providing the last known tag for the remote resource; the response will benull
if the remote resource is unchanged.
-
Method Details
-
connect
Connect to the specified URL.- Parameters:
url
-- Throws:
IOException
Exception
-
connectTagged
Connect to the specified URL, also returning the ETag if available.- Parameters:
url
- The remote URL.- Returns:
- An instance of
TaggedData
; note that theTaggedData.getTag()
method may returnnull
if the resource has no tag. - Throws:
IOException
- @since 1.1Exception
-
connectTagged
Connect to the specified URL while providing the last known tag for the remote resource; the response will benull
if the remote resource is unchanged.- Parameters:
url
- The remote URL.tag
- The last known tag value for the resource.- Returns:
- An instance of
TaggedData
, ornull
if the resource has not modified (i.e., if it has the same tag value). - Throws:
IOException
- @since 1.1Exception
-