Пример #1
0
 private Association openAssociation(Association as, ApplicationEntity localAE) {
   try {
     LOG.info(
         "{}: open association to {} for forwarding C-STORE-RQ received in association {}",
         retrieveCtx.getRequestAssociation(),
         retrieveCtx.getDestinationAETitle(),
         as);
     return localAE.connect(retrieveCtx.getDestinationAE(), createAARQ(as));
   } catch (Exception e) {
     LOG.warn(
         "{}: failed to open association to {} for forwarding C-STORE-RQ received in association {}:\n",
         retrieveCtx.getRequestAssociation(),
         retrieveCtx.getDestinationAETitle(),
         as,
         e);
     return null;
   }
 }
Пример #2
0
 public void open()
     throws IOException, InterruptedException, IncompatibleConnectionException,
         GeneralSecurityException {
   as = ae.connect(remote, rq);
 }