use of org.dcm4che3.net.pdu.ExtendedNegotiation in project dcm4che by dcm4che.
the class MoveSCU method setInformationModel.
public final void setInformationModel(InformationModel model, String[] tss, boolean relational) {
this.model = model;
rq.addPresentationContext(new PresentationContext(1, model.cuid, tss));
if (relational)
rq.addExtendedNegotiation(new ExtendedNegotiation(model.cuid, new byte[] { 1 }));
if (model.level != null)
addLevel(model.level);
}
use of org.dcm4che3.net.pdu.ExtendedNegotiation in project dcm4che by dcm4che.
the class PDUEncoder method encodeUserInfo.
private void encodeUserInfo(AAssociateRQAC rqac) {
encodeItemHeader(ItemType.USER_INFO, rqac.userInfoLength());
encodeMaxPDULength(rqac.getMaxPDULength());
encodeStringItem(ItemType.IMPL_CLASS_UID, rqac.getImplClassUID());
if (rqac.isAsyncOps())
encodeAsyncOpsWindow(rqac);
for (RoleSelection rs : rqac.getRoleSelections()) encode(rs);
encodeStringItem(ItemType.IMPL_VERSION_NAME, rqac.getImplVersionName());
for (ExtendedNegotiation extNeg : rqac.getExtendedNegotiations()) encode(extNeg);
for (CommonExtendedNegotiation extNeg : rqac.getCommonExtendedNegotiations()) encode(extNeg);
encode(rqac.getUserIdentityRQ());
encode(rqac.getUserIdentityAC());
}
use of org.dcm4che3.net.pdu.ExtendedNegotiation in project dcm4che by dcm4che.
the class FindSCU method setInformationModel.
public final void setInformationModel(InformationModel model, String[] tss, EnumSet<QueryOption> queryOptions) {
this.model = model;
rq.addPresentationContext(new PresentationContext(1, model.cuid, tss));
if (!queryOptions.isEmpty()) {
model.adjustQueryOptions(queryOptions);
rq.addExtendedNegotiation(new ExtendedNegotiation(model.cuid, QueryOption.toExtendedNegotiationInformation(queryOptions)));
}
if (model.level != null)
addLevel(model.level);
}
use of org.dcm4che3.net.pdu.ExtendedNegotiation in project dcm4chee-arc-light by dcm4che.
the class CMoveSCUImpl method openAssociation.
private Association openAssociation(RetrieveContext ctx, PresentationContext pc, String callingAET, String otherCMoveSCP) throws Exception {
ApplicationEntity remoteAE = aeCache.findApplicationEntity(otherCMoveSCP);
Association as = ctx.getRequestAssociation();
PresentationContext rqpc = as.getAAssociateRQ().getPresentationContext(pc.getPCID());
AAssociateRQ aarq = new AAssociateRQ();
if (callingAET != null)
aarq.setCallingAET(callingAET);
aarq.addPresentationContext(rqpc);
aarq.addExtendedNegotiation(new ExtendedNegotiation(rqpc.getAbstractSyntax(), QueryOption.toExtendedNegotiationInformation(EnumSet.of(QueryOption.RELATIONAL))));
Association fwdas = ctx.getLocalApplicationEntity().connect(remoteAE, aarq);
fwdas.setProperty("forward-C-MOVE-RQ-for-Study", ctx.getStudyInstanceUID());
return fwdas;
}
use of org.dcm4che3.net.pdu.ExtendedNegotiation in project dcm4chee-arc-light by dcm4che.
the class CFindSCUImpl method createAARQ.
private static AAssociateRQ createAARQ(String cuid, EnumSet<QueryOption> queryOptions) {
AAssociateRQ aarq = new AAssociateRQ();
aarq.addPresentationContext(new PresentationContext(PCID, cuid, UID.ImplicitVRLittleEndian));
if (queryOptions != null)
aarq.addExtendedNegotiation(new ExtendedNegotiation(cuid, QueryOption.toExtendedNegotiationInformation(queryOptions)));
return aarq;
}
Aggregations