1 8 9 package mx4j.tools.remote; 10 11 import java.io.IOException ; 12 13 18 public abstract class AbstractConnection implements Connection 19 { 20 private final String connectionId; 21 private final ConnectionManager manager; 22 23 protected AbstractConnection(String connectionId, ConnectionManager manager) 24 { 25 this.connectionId = connectionId; 26 this.manager = manager; 27 } 28 29 public void close() throws IOException  30 { 31 manager.closeConnection(this); 32 } 33 34 public String getConnectionId() throws IOException  35 { 36 return connectionId; 37 } 38 } 39 | Popular Tags |