Search in sources :

Example 1 with ExtendedNegotiation

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);
}
Also used : ExtendedNegotiation(org.dcm4che3.net.pdu.ExtendedNegotiation) PresentationContext(org.dcm4che3.net.pdu.PresentationContext)

Example 2 with ExtendedNegotiation

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());
}
Also used : RoleSelection(org.dcm4che3.net.pdu.RoleSelection) ExtendedNegotiation(org.dcm4che3.net.pdu.ExtendedNegotiation) CommonExtendedNegotiation(org.dcm4che3.net.pdu.CommonExtendedNegotiation) CommonExtendedNegotiation(org.dcm4che3.net.pdu.CommonExtendedNegotiation)

Example 3 with ExtendedNegotiation

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);
}
Also used : ExtendedNegotiation(org.dcm4che3.net.pdu.ExtendedNegotiation) PresentationContext(org.dcm4che3.net.pdu.PresentationContext)

Example 4 with ExtendedNegotiation

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;
}
Also used : AAssociateRQ(org.dcm4che3.net.pdu.AAssociateRQ) ExtendedNegotiation(org.dcm4che3.net.pdu.ExtendedNegotiation) PresentationContext(org.dcm4che3.net.pdu.PresentationContext)

Example 5 with ExtendedNegotiation

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;
}
Also used : AAssociateRQ(org.dcm4che3.net.pdu.AAssociateRQ) ExtendedNegotiation(org.dcm4che3.net.pdu.ExtendedNegotiation) PresentationContext(org.dcm4che3.net.pdu.PresentationContext)

Aggregations

ExtendedNegotiation (org.dcm4che3.net.pdu.ExtendedNegotiation)7 PresentationContext (org.dcm4che3.net.pdu.PresentationContext)6 AAssociateRQ (org.dcm4che3.net.pdu.AAssociateRQ)2 CommonExtendedNegotiation (org.dcm4che3.net.pdu.CommonExtendedNegotiation)2 RoleSelection (org.dcm4che3.net.pdu.RoleSelection)1