diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-13 10:18:02 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-13 10:18:02 +0100 |
commit | ba7132f3ce5629cff2cc4857fff7bd672511bee8 (patch) | |
tree | dc6f7d1adafb8351004f2de6f3f775ebfe596fc7 /jsonrpc/src/main/java/com/orbekk/same/ConnectionManagerImpl.java | |
parent | 85a93de08694f25bd049c5236f11f06b8d8e4ff7 (diff) |
Rename projects.
– jsonrpc → same
– master → same-android
Diffstat (limited to 'jsonrpc/src/main/java/com/orbekk/same/ConnectionManagerImpl.java')
-rw-r--r-- | jsonrpc/src/main/java/com/orbekk/same/ConnectionManagerImpl.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/jsonrpc/src/main/java/com/orbekk/same/ConnectionManagerImpl.java b/jsonrpc/src/main/java/com/orbekk/same/ConnectionManagerImpl.java deleted file mode 100644 index 841d5fa..0000000 --- a/jsonrpc/src/main/java/com/orbekk/same/ConnectionManagerImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.orbekk.same; - -import com.googlecode.jsonrpc4j.JsonRpcHttpClient; -import com.googlecode.jsonrpc4j.ProxyUtil; -import java.net.MalformedURLException; -import java.net.URL; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class ConnectionManagerImpl implements ConnectionManager { - - private Logger logger = LoggerFactory.getLogger(getClass()); - - public ConnectionManagerImpl() { - } - - @Override - public SameService getConnection(String url) { - SameService service = null; - try { - JsonRpcHttpClient client = new JsonRpcHttpClient(new URL(url)); - service = ProxyUtil.createProxy( - this.getClass().getClassLoader(), - SameService.class, - client); - } catch (MalformedURLException e) { - logger.warn("Unable to create client for {}, {}", url, e); - } - return service; - } -} |