@Test public void getTargetUnknownHash() { DefaultSocks5ConnectionsRegistry connectionsRegistry = new DefaultSocks5ConnectionsRegistry(); Assert.assertNull(connectionsRegistry.getTarget(hash)); }
public IoSession getTarget(String hash) { Socks5Pair pair = pairs.get(hash); if(pair != null) { return pair.getTarget(); } else { return null; } }
DefaultSocks5ConnectionsRegistry implements Socks5ConnectionsRegistry { public IoSession getTarget(String hash) { Socks5Pair pair = pairs.get(hash); if(pair != null) { return pair.getTarget(); } else { return null; } } }
DefaultSocks5ConnectionsRegistry implements Socks5ConnectionsRegistry { public IoSession getTarget(String hash) { Socks5Pair pair = pairs.get(hash); if(pair != null) { return pair.getTarget(); } else { return null; } }  }
DefaultSocks5ConnectionsRegistry implements Socks5ConnectionsRegistry { public IoSession getTarget(String hash) { Socks5Pair pair = pairs.get(hash); if(pair != null) { return pair.getTarget(); } else { return null; } }  Socks5Pair register(String hash, IoSession session); IoSession getTarget(String hash); IoSession getRequester(String hash); boolean isActivated(String hash); boolean activate(String hash); void close(String hash); }
DefaultSocks5ConnectionsRegistry implements Socks5ConnectionsRegistry { public IoSession getTarget(String hash) { Socks5Pair pair = pairs.get(hash); if(pair != null) { return pair.getTarget(); } else { return null; } }  Socks5Pair register(String hash, IoSession session); IoSession getTarget(String hash); IoSession getRequester(String hash); boolean isActivated(String hash); boolean activate(String hash); void close(String hash);  }