本文整理了Java中org.dcm4che3.net.Association.getCalledAET()
方法的一些代码示例,展示了Association.getCalledAET()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Association.getCalledAET()
方法的具体详情如下:
包路径:org.dcm4che3.net.Association
类名称:Association
方法名:getCalledAET
暂无
代码示例来源:origin: dcm4che/dcm4che
public String getRemoteAET() {
return requestor ? getCalledAET() : getCallingAET();
}
代码示例来源:origin: org.dcm4che/dcm4che-net
public String getRemoteAET() {
return requestor ? getCalledAET() : getCallingAET();
}
代码示例来源:origin: dcm4che/dcm4che
public String getLocalAET() {
return requestor ? getCallingAET() : getCalledAET();
}
代码示例来源:origin: org.dcm4che/dcm4che-net
public String getLocalAET() {
return requestor ? getCallingAET() : getCalledAET();
}
代码示例来源:origin: dcm4che/dcm4che
@Override
public void onDimseRQ(Association as, PresentationContext pc, Dimse dimse,
Attributes rq, Attributes actionInfo) throws IOException {
if (dimse != Dimse.N_ACTION_RQ)
throw new DicomServiceException(Status.UnrecognizedOperation);
int actionTypeID = rq.getInt(Tag.ActionTypeID, 0);
if (actionTypeID != 1)
throw new DicomServiceException(Status.NoSuchActionType)
.setActionTypeID(actionTypeID);
Attributes rsp = Commands.mkNActionRSP(rq, Status.Success);
String callingAET = as.getCallingAET();
String calledAET = as.getCalledAET();
Connection remoteConnection = getRemoteConnection(callingAET);
if (remoteConnection == null)
throw new DicomServiceException(Status.ProcessingFailure,
"Unknown Calling AET: " + callingAET);
Attributes eventInfo =
calculateStorageCommitmentResult(calledAET, actionInfo);
try {
as.writeDimseRSP(pc, rsp, null);
device.execute(new SendStgCmtResult(as, eventInfo,
stgCmtOnSameAssoc, remoteConnection));
} catch (AssociationStateException e) {
LOG.warn("{} << N-ACTION-RSP failed: {}", as, e.getMessage());
}
}
代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp
@Override
public void onDimseRQ(Association as, PresentationContext pc, Dimse dimse,
Attributes rq, Attributes actionInfo) throws IOException {
if (dimse != Dimse.N_ACTION_RQ)
throw new DicomServiceException(Status.UnrecognizedOperation);
int actionTypeID = rq.getInt(Tag.ActionTypeID, 0);
if (actionTypeID != 1)
throw new DicomServiceException(Status.NoSuchActionType)
.setActionTypeID(actionTypeID);
Attributes rsp = Commands.mkNActionRSP(rq, Status.Success);
String callingAET = as.getCallingAET();
String calledAET = as.getCalledAET();
Connection remoteConnection = getRemoteConnection(callingAET);
if (remoteConnection == null)
throw new DicomServiceException(Status.ProcessingFailure,
"Unknown Calling AET: " + callingAET);
Attributes eventInfo =
calculateStorageCommitmentResult(calledAET, actionInfo);
try {
as.writeDimseRSP(pc, rsp, null);
device.execute(new SendStgCmtResult(as, eventInfo,
stgCmtOnSameAssoc, remoteConnection));
} catch (AssociationStateException e) {
LOG.warn("{} << N-ACTION-RSP failed: {}", as, e.getMessage());
}
}
代码示例来源:origin: dcm4che/dcm4che
@Override
protected Attributes adjust(Attributes match) {
Attributes adjust = super.adjust(match);
adjust.remove(Tag.DirectoryRecordType);
if (keys.contains(Tag.SOPClassUID))
adjust.setString(Tag.SOPClassUID, VR.UI,
match.getString(Tag.ReferencedSOPClassUIDInFile));
if (keys.contains(Tag.SOPInstanceUID))
adjust.setString(Tag.SOPInstanceUID, VR.UI,
match.getString(Tag.ReferencedSOPInstanceUIDInFile));
adjust.setString(Tag.QueryRetrieveLevel, VR.CS,
keys.getString(Tag.QueryRetrieveLevel));
adjust.setString(Tag.RetrieveAETitle, VR.AE, as.getCalledAET());
if (availability != null)
adjust.setString(Tag.InstanceAvailability, VR.CS, availability);
adjust.setString(Tag.StorageMediaFileSetID, VR.SH, ddr.getFileSetID());
adjust.setString(Tag.StorageMediaFileSetUID, VR.UI, ddr.getFileSetUID());
match.setString(Tag.SOPClassUID, VR.UI,
match.getString(Tag.ReferencedSOPClassUIDInFile));
match.setString(Tag.SOPInstanceUID, VR.UI,
match.getString(Tag.ReferencedSOPInstanceUIDInFile));
if (delayCFind > 0)
try {
Thread.sleep(delayCFind);
} catch (InterruptedException ignore) {}
return adjust;
}
代码示例来源:origin: org.dcm4che.tool/dcm4che-tool-dcmqrscp
@Override
protected Attributes adjust(Attributes match) {
Attributes adjust = super.adjust(match);
adjust.remove(Tag.DirectoryRecordType);
if (keys.contains(Tag.SOPClassUID))
adjust.setString(Tag.SOPClassUID, VR.UI,
match.getString(Tag.ReferencedSOPClassUIDInFile));
if (keys.contains(Tag.SOPInstanceUID))
adjust.setString(Tag.SOPInstanceUID, VR.UI,
match.getString(Tag.ReferencedSOPInstanceUIDInFile));
adjust.setString(Tag.QueryRetrieveLevel, VR.CS,
keys.getString(Tag.QueryRetrieveLevel));
adjust.setString(Tag.RetrieveAETitle, VR.AE, as.getCalledAET());
if (availability != null)
adjust.setString(Tag.InstanceAvailability, VR.CS, availability);
adjust.setString(Tag.StorageMediaFileSetID, VR.SH, ddr.getFileSetID());
adjust.setString(Tag.StorageMediaFileSetUID, VR.UI, ddr.getFileSetUID());
match.setString(Tag.SOPClassUID, VR.UI,
match.getString(Tag.ReferencedSOPClassUIDInFile));
match.setString(Tag.SOPInstanceUID, VR.UI,
match.getString(Tag.ReferencedSOPInstanceUIDInFile));
if (delayCFind > 0)
try {
Thread.sleep(delayCFind);
} catch (InterruptedException ignore) {}
return adjust;
}
内容来源于网络,如有侵权,请联系作者删除!