Example #1
0
  public void setTransferCapabilities(Collection<TransferCapability> transferCapabilities) {
    scpTCs.clear();
    scuTCs.clear();

    for (TransferCapability tc : transferCapabilities) {
      tc.setApplicationEntity(this);
      switch (tc.getRole()) {
        case SCP:
          scpTCs.put(tc.getSopClass(), tc);
          break;
        case SCU:
          scuTCs.put(tc.getSopClass(), tc);
      }
    }
  }
Example #2
0
 private void reconfigureTransferCapabilities(ApplicationEntity src) {
   scuTCs.clear();
   scuTCs.putAll(src.scuTCs);
   scpTCs.clear();
   scpTCs.putAll(src.scpTCs);
 }