public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.HTTP) throw new IllegalArgumentException( "Web Application does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.DICOM) throw new IllegalArgumentException( "protocol != DICOM - " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by Device: " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.HTTP) throw new IllegalArgumentException( "Web Application does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.HL7) throw new IllegalArgumentException( "protocol != HL7 - " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (conn.getProtocol() != Connection.Protocol.DICOM) throw new IllegalArgumentException( "protocol != DICOM - " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by Device: " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Logger does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Logger does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Record Repository does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
public void addConnection(Connection conn) { if (!conn.getProtocol().isSyslog()) throw new IllegalArgumentException( "Audit Record Repository does not support protocol " + conn.getProtocol()); if (device != null && device != conn.getDevice()) throw new IllegalStateException(conn + " not contained by " + device.getDeviceName()); conns.add(conn); }
private synchronized ActiveConnection activeConnection() throws IncompatibleConnectionException { ActiveConnection activeConnection = this.activeConnection; if (activeConnection != null) return activeConnection; Device arrDev = this.arrDevice; if (arrDevice == null) throw new IllegalStateException("No AuditRecordRepositoryDevice initalized"); AuditRecordRepository arr = arrDev.getDeviceExtension(AuditRecordRepository.class); if (arr == null) throw new IllegalStateException("AuditRecordRepositoryDevice " + arrDevice.getDeviceName() + " does not provide Audit Record Repository"); for (Connection remoteConn : arr.getConnections()) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) { return (this.activeConnection = conn.getProtocol().isTCP() ? new TCPConnection(conn, remoteConn) : new UDPConnection(conn, remoteConn)); } throw new IncompatibleConnectionException( "No compatible connection to AuditRecordRepository @ Device " + arr.getDevice().getDeviceName() + " available on AuditLogger @ Device " + device.getDeviceName()); }
private synchronized ActiveConnection activeConnection() throws IncompatibleConnectionException { ActiveConnection activeConnection = this.activeConnection; if (activeConnection != null) return activeConnection; Device arrDev = this.arrDevice; if (arrDevice == null) throw new IllegalStateException("No AuditRecordRepositoryDevice initalized"); AuditRecordRepository arr = arrDev.getDeviceExtension(AuditRecordRepository.class); if (arr == null) throw new IllegalStateException("AuditRecordRepositoryDevice " + arrDevice.getDeviceName() + " does not provide Audit Record Repository"); for (Connection remoteConn : arr.getConnections()) if (remoteConn.isInstalled() && remoteConn.isServer()) for (Connection conn : conns) if (conn.isInstalled() && conn.isCompatible(remoteConn)) { return (this.activeConnection = conn.getProtocol().isTCP() ? new TCPConnection(conn, remoteConn) : new UDPConnection(conn, remoteConn)); } throw new IncompatibleConnectionException( "No compatible connection to AuditRecordRepository @ Device " + arr.getDevice().getDeviceName() + " available on AuditLogger @ Device " + device.getDeviceName()); }
return mods; LdapUtils.storeDiffObject(ldapObj, mods, "dcmProtocol", a.getProtocol(), b.getProtocol(), Protocol.DICOM); LdapUtils.storeDiffObject(ldapObj, mods, "dcmHTTPProxy", a.getHttpProxy(),
return mods; LdapUtils.storeDiffObject(ldapObj, mods, "dcmProtocol", a.getProtocol(), b.getProtocol(), Protocol.DICOM); LdapUtils.storeDiffObject(ldapObj, mods, "dcmHTTPProxy", a.getHttpProxy(),
LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmProtocol", conn.getProtocol(), Protocol.DICOM); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmHTTPProxy", conn.getHttpProxy(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmBlacklistedHostname", conn.getBlacklist());
if (extended) { writer.writeStartObject("dcmNetworkConnection"); writer.writeNotNullOrDef("dcmProtocol", conn.getProtocol(), Connection.Protocol.DICOM); writer.writeNotNullOrDef("dcmHTTPProxy", conn.getHttpProxy(), null); writer.writeNotEmpty("dcmBlacklistedHostname", conn.getBlacklist());
if (extended) { writer.writeStartObject("dcmNetworkConnection"); writer.writeNotNullOrDef("dcmProtocol", conn.getProtocol(), Connection.Protocol.DICOM); writer.writeNotNullOrDef("dcmHTTPProxy", conn.getHttpProxy(), null); writer.writeNotEmpty("dcmBlacklistedHostname", conn.getBlacklist());
LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmProtocol", conn.getProtocol(), Protocol.DICOM); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmHTTPProxy", conn.getHttpProxy(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmBlacklistedHostname", conn.getBlacklist());