diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-10-14 01:06:45 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-10-14 01:06:45 +0200 |
commit | bbb0693f4a9a62a872b61b12a5118b01c7ca9450 (patch) | |
tree | 7db16c0083e42461921936344fba1f9af7c58f97 /src/eu/siacs/conversations/http/HttpConnectionManager.java | |
parent | 7e373bc89fd11cf214fb435f25063d77cc2c48ae (diff) |
basic image over http downloading
Diffstat (limited to 'src/eu/siacs/conversations/http/HttpConnectionManager.java')
-rw-r--r-- | src/eu/siacs/conversations/http/HttpConnectionManager.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/http/HttpConnectionManager.java b/src/eu/siacs/conversations/http/HttpConnectionManager.java new file mode 100644 index 00000000..ee50ef7e --- /dev/null +++ b/src/eu/siacs/conversations/http/HttpConnectionManager.java @@ -0,0 +1,27 @@ +package eu.siacs.conversations.http; + +import java.util.List; +import java.util.concurrent.CopyOnWriteArrayList; + +import eu.siacs.conversations.AbstractConnectionManager; +import eu.siacs.conversations.entities.Message; +import eu.siacs.conversations.services.XmppConnectionService; + +public class HttpConnectionManager extends AbstractConnectionManager { + + public HttpConnectionManager(XmppConnectionService service) { + super(service); + } + + private XmppConnectionService mXmppConnectionService; + + private List<HttpConnection> connections = new CopyOnWriteArrayList<HttpConnection>(); + + + public HttpConnection createNewConnection(Message message) { + HttpConnection connection = new HttpConnection(this); + connection.init(message); + this.connections.add(connection); + return connection; + } +} |