@Override public DimseRSPHandler createDimseRSPHandlerForNSet() { return new DimseRSPHandler(as.nextMessageID()); } };
@Override public DimseRSPHandler createDimseRSPHandlerForNSet() { return new DimseRSPHandler(as.nextMessageID()); } };
@Override public DimseRSPHandler createDimseRSPHandlerForNCreate(final MppsWithIUID mppsWithUID) { return new DimseRSPHandler(as.nextMessageID()) { @Override public void onDimseRSP(Association as, Attributes cmd, Attributes data) { switch(cmd.getInt(Tag.Status, -1)) { case Status.Success: case Status.AttributeListError: case Status.AttributeValueOutOfRange: mppsWithUID.iuid = cmd.getString( Tag.AffectedSOPInstanceUID, mppsWithUID.iuid); addCreatedMpps(mppsWithUID); } super.onDimseRSP(as, cmd, data); } }; }
@Override public DimseRSPHandler createDimseRSPHandlerForNCreate(final MppsWithIUID mppsWithUID) { return new DimseRSPHandler(as.nextMessageID()) { @Override public void onDimseRSP(Association as, Attributes cmd, Attributes data) { switch(cmd.getInt(Tag.Status, -1)) { case Status.Success: case Status.AttributeListError: case Status.AttributeValueOutOfRange: mppsWithUID.iuid = cmd.getString( Tag.AffectedSOPInstanceUID, mppsWithUID.iuid); addCreatedMpps(mppsWithUID); } super.onDimseRSP(as, cmd, data); } }; }
private void sendIan(Attributes ian) throws IOException, InterruptedException { as.ncreate(UID.InstanceAvailabilityNotificationSOPClass, null, ian, null, new DimseRSPHandler(as.nextMessageID())); }
private void sendIan(Attributes ian) throws IOException, InterruptedException { as.ncreate(UID.InstanceAvailabilityNotificationSOPClass, null, ian, null, new DimseRSPHandler(as.nextMessageID())); }