public MLLPConnection connect(HL7Application remote) throws IOException, IncompatibleConnectionException, GeneralSecurityException { CompatibleConnection cc = findCompatibleConnection(remote); return connect(cc.getLocalConnection(), cc.getRemoteConnection()); }
public CompatibleConnection findCompatibleConnection(HL7Application remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getApplicationName() + " available on " + name); }
public CompatibleConnection findCompatibleConnection(ApplicationEntity remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getAETitle() + " available on " + aet); }
public Association connect(ApplicationEntity remote, AAssociateRQ rq) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException { CompatibleConnection cc = findCompatibleConnection(remote); if (rq.getCalledAET() == null) rq.setCalledAET(remote.getAETitle()); return connect(cc.getLocalConnection(), cc.getRemoteConnection(), rq); }
public CompatibleConnection findCompatibleConnection(ApplicationEntity remote) throws IncompatibleConnectionException { for (Connection remoteConn : remote.conns) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) return new CompatibleConnection(conn, remoteConn); throw new IncompatibleConnectionException( "No compatible connection to " + remote.getAETitle() + " available on " + aet); }
public Association connect(ApplicationEntity remote, AAssociateRQ rq) throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException { CompatibleConnection cc = findCompatibleConnection(remote); if (rq.getCalledAET() == null) rq.setCalledAET(remote.getAETitle()); return connect(cc.getLocalConnection(), cc.getRemoteConnection(), rq); }