create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / communication / ConnectionSource.java
1 package net.sf.openrocket.communication;
2
3 import java.io.IOException;
4 import java.net.HttpURLConnection;
5
6 /**
7  * A source for network connections.  This interface exists to enable unit testing.
8  * 
9  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
10  */
11 public interface ConnectionSource {
12
13         /**
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
18          */
19         public HttpURLConnection getConnection(String url) throws IOException;
20         
21 }