1 package net.sf.openrocket.communication;
3 import java.io.IOException;
4 import java.net.HttpURLConnection;
7 * A source for network connections. This interface exists to enable unit testing.
9 * @author Sampo Niskanen <sampo.niskanen@iki.fi>
11 public interface ConnectionSource {
14 * Return a connection to the specified url.
15 * @param url the URL to connect to.
16 * @return the corresponding HttpURLConnection
17 * @throws IOException if an IOException occurs
19 public HttpURLConnection getConnection(String url) throws IOException;