aQute.bnd.service.url
Interface URLConnector


public interface URLConnector


Method Summary
 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.
 

Method Detail

connect

InputStream connect(URL url)
                    throws IOException
Connect to the specified URL.

Parameters:
url -
Returns:
Throws:
IOException

connectTagged

TaggedData connectTagged(URL url)
                         throws IOException
Connect to the specified URL, also returning the ETag if available.

Parameters:
url - The remote URL.
Returns:
An instance of TaggedData; note that the TaggedData.getTag() method may return null if the resource has no tag.
Throws:
IOException
Since:
1.1

connectTagged

TaggedData connectTagged(URL url,
                         String tag)
                         throws IOException
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.

Parameters:
url - The remote URL.
tag - The last known tag value for the resource.
Returns:
An instance of TaggedData, or null if the resource has not modified (i.e., if it has the same tag value).
Throws:
IOException
Since:
1.1


Copyright © 2014 aQute SARL. All rights reserved.