| | |
| | | import java.net.URL; |
| | | import java.net.URLClassLoader; |
| | | import java.util.Collection; |
| | | import java.util.Collections; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | |
| | | */ |
| | | @Override() |
| | | public Collection<HostPort> getListeners() { |
| | | // There are no listeners for this connection handler. |
| | | return Collections.<HostPort>emptySet(); |
| | | return this.listeners; |
| | | } |
| | | |
| | | /** |
| | |
| | | @Override() |
| | | public Collection<ClientConnection> getClientConnections() { |
| | | // There are no client connections for this connection handler. |
| | | return Collections.<ClientConnection>emptySet(); |
| | | return this.connectionList; |
| | | } |
| | | |
| | | /** |
| | |
| | | @SuppressWarnings("unchecked") |
| | | private void addFile(File file) { |
| | | try { |
| | | URL u = new URL("jar:file://"+ file.toString()+"!/"); |
| | | URL u = new URL("jar:file:/"+ file.toString()+"!/"); |
| | | Class[] parameters = new Class[]{URL.class}; |
| | | URLClassLoader sysloader = |
| | | (URLClassLoader)ClassLoader.getSystemClassLoader(); |