private DicomServiceRegistry createServiceRegistry() { DicomServiceRegistry serviceRegistry = new DicomServiceRegistry(); serviceRegistry.addDicomService(new BasicCEchoSCP()); serviceRegistry.addDicomService(cstoreSCP); return serviceRegistry; }
@Override public void onDimseRQ(Association as, PresentationContext pc, Dimse dimse, Attributes rq, Attributes rqAttrs) throws IOException { switch (dimse) { case N_CREATE_RQ: onNCreateRQ(as, pc, rq, rqAttrs); break; case N_SET_RQ: onNSetRQ(as, pc, rq, rqAttrs); break; default: throw new DicomServiceException(Status.UnrecognizedOperation); } }
public void addDicomService(DicomService service) { addDimseRQHandler(service, service.getSOPClasses()); }
private DicomServiceRegistry createServiceRegistry() { DicomServiceRegistry serviceRegistry = new DicomServiceRegistry(); serviceRegistry.addDicomService(storageSCP); return serviceRegistry; }
private static DicomServiceException identifierDoesNotMatchSOPClass(String comment, int tag) { return new DicomServiceException(Status.IdentifierDoesNotMatchSOPClass, comment) .setOffendingElements(tag); } }
public static void mayNoLongerBeUpdated() throws DicomServiceException { throw new DicomServiceException(Status.ProcessingFailure, "Performed Procedure Step Object may no longer be updated") .setErrorID(0xA710); }
public void removeDicomService(DicomService service) { removeDimseRQHandler(service.getSOPClasses()); }
public CFindSCPImpl(String sopClass, String... qrLevels) { super(sopClass); this.qrLevels = qrLevels; this.rootLevel = QueryRetrieveLevel.valueOf(qrLevels[0]); }
@Override public void onDimseRQ(Association as, PresentationContext pc, Dimse dimse, Attributes cmd, PDVInputStream data) throws IOException { onDimseRQ(as, pc, dimse, cmd, readDataset(pc, data)); }
public static QueryRetrieveLevel2 validateQueryIdentifier( Attributes keys, EnumSet<QueryRetrieveLevel2> levels, boolean relational) throws DicomServiceException { return validateIdentifier(keys, levels, relational, true); }
protected QueryTask calculateMatches(Association as, PresentationContext pc, Attributes rq, Attributes keys) throws DicomServiceException { return new BasicQueryTask(as, pc, rq, keys); } }
@Override public void run() { BasicRetrieveTask.this.writePendingRSP(); } },
@Override protected IOD retrieveKeysIOD(QueryRetrieveLevel rootLevel, boolean relational) { return IMAGE.retrieveKeysIOD(rootLevel, relational); } };
private DicomServiceRegistry createServiceRegistry() { DicomServiceRegistry serviceRegistry = new DicomServiceRegistry(); serviceRegistry.addDicomService(new BasicCEchoSCP()); serviceRegistry.addDicomService(cstoreSCP); return serviceRegistry; }
private static DicomServiceException identifierDoesNotMatchSOPClass(String comment, int tag) { return new DicomServiceException(Status.IdentifierDoesNotMatchSOPClass, comment) .setOffendingElements(tag); } }
public void addDicomService(DicomService service) { addDimseRQHandler(service, service.getSOPClasses()); }
public void removeDicomService(DicomService service) { removeDimseRQHandler(service.getSOPClasses()); }
public CGetSCPImpl(String sopClass, String... qrLevels) { super(sopClass); this.qrLevels = qrLevels; this.withoutBulkData = qrLevels.length == 0; this.rootLevel = withoutBulkData ? QueryRetrieveLevel.IMAGE : QueryRetrieveLevel.valueOf(qrLevels[0]); }
public static QueryRetrieveLevel2 validateRetrieveIdentifier( Attributes keys, EnumSet<QueryRetrieveLevel2> levels, boolean relational) throws DicomServiceException { return validateIdentifier(keys, levels, relational, false); }
protected QueryTask calculateMatches(Association as, PresentationContext pc, Attributes rq, Attributes keys) throws DicomServiceException { return new BasicQueryTask(as, pc, rq, keys); } }