Examples of AAbort


Examples of org.dcm4che3.net.pdu.AAbort

    void onDimseRQ(Association as, PresentationContext pc, Dimse cmd,
            Attributes cmdAttrs, PDVInputStream data) throws IOException {
        DimseRQHandler tmp = getDimseRQHandler();
        if (tmp == null) {
            LOG.error("DimseRQHandler not initalized");
            throw new AAbort();
        }
        tmp.onDimseRQ(as, pc, cmd, cmdAttrs, data);
    }
View Full Code Here

Examples of org.dcm4che3.net.pdu.AAbort

            break;
        case PDUType.A_ABORT:
            checkPDULength(4);
            get();
            get();
            as.onAAbort(new AAbort(get(), get()));
            break;
        default:
            abort(AAbort.UNRECOGNIZED_PDU, UNRECOGNIZED_PDU);
        }
    }
View Full Code Here

Examples of org.dcm4che3.net.pdu.AAbort

    }

    private void abort(int reason, String logmsg) throws AAbort {
        Association.LOG.warn(logmsg,
                new Object[] { as, pdutype, pdulen & 0xFFFFFFFFL });
        throw new AAbort(AAbort.UL_SERIVE_PROVIDER, reason);
    }
View Full Code Here

Examples of org.dcm4che3.net.pdu.AAbort

        PresentationContext pc = as.getPresentationContext(pcid);
        if (pc == null) {
            Association.LOG.warn(
                    "{}: No Presentation Context with given ID - {}",
                    as, pcid);
            throw new AAbort();
        }

        if (!pc.isAccepted()) {
            Association.LOG.warn(
                    "{}: No accepted Presentation Context with given ID - {}",
                    as, pcid);
            throw new AAbort();
        }

        Attributes cmd = readCommand();
        Dimse dimse = dimseOf(cmd);
        String tsuid = pc.getTransferSyntax();
View Full Code Here

Examples of org.dcm4che3.net.pdu.AAbort

        try {
            return Dimse.valueOf(cmd.getInt(Tag.CommandField, 0));
        } catch (IllegalArgumentException e) {
            Dimse.LOG.info("{}: illegal DIMSE:", as);
            Dimse.LOG.info("\n{}", cmd);
            throw new AAbort();
        }
    }
View Full Code Here

Examples of org.dcm4che3.net.pdu.AAbort

    public void release() throws IOException {
        state.writeAReleaseRQ(this);
    }

    public void abort() {
        abort(new AAbort());
    }
View Full Code Here

Examples of org.dcm4che3.net.pdu.AAbort

    }

    void unexpectedPDU(String pdu) throws AAbort {
        LOG.warn("{} >> unexpected {} in state: {}",
                new Object[] { name, pdu, state });
        throw new AAbort(AAbort.UL_SERIVE_PROVIDER, AAbort.UNEXPECTED_PDU);
    }
View Full Code Here

Examples of org.dcm4che3.net.pdu.AAbort

        boolean pending = Status.isPending(status);
        DimseRSPHandler rspHandler = getDimseRSPHandler(msgId);
        if (rspHandler == null) {
            Dimse.LOG.info("{}: unexpected message ID in DIMSE RSP:", name);
            Dimse.LOG.info("\n{}", cmd);
            throw new AAbort();
        }
        rspHandler.onDimseRSP(this, cmd, data);
        if (pending)
            startTimeout(msgId, dimse.isRetrieveRQ()
                    ? conn.getRetrieveTimeout()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.