|
![]() |
||||||
PREV NEXT | FRAMES NO FRAMES |
The Merge DICOM WS Java Toolkit provides several sample applications, which show the examples of submitting various Http DICOM WADO requests to the simple DICOM service and reading
back an Http responses with encapsulated DICOM data.
All samples use the simple DICOM service, which supports C-FIND, C-GET and C-STORE requests and runs the primitive DICOM database to retrieve DICOM images. The Http requests are handled with self-host Http MCsampleServer server which uses the set of Http handlers inherited from MChttpHandler abstract class.
Each Http handler implements Apache HttpRequestHandler interface void handle(HttpRequest var1, HttpResponse var2, HttpContext var3) method and Sun HttpHandler interface void handle(HttpExchange var1) method.
The following part presents as an example the implementation of MCstowHandler STOW-RS Htpp handler. The handler gets the client STOW-RS WADO request, creates an instance of STOW MCrequest with provided WADO parameters and submits request to the DICOM service. On service reply the toolkit generates the instance of Apache HttpResponse, which is sent to the client.
WADO-RS Client sample
This sample shows how to generate WADO-RS request and parse HttpResponse returned by the toolkit.
WADO-URI Client sample
This sample shows how to generate WADO-URI request and parse HttpResponse returned by the toolkit.
QIDO-RS Client sample
This sample shows how to generate QIDO-RS request and parse HttpResponse returned by the toolkit.
STOW-RS Client sample
This sample shows how to generate STOW-RS request and parse HttpResponse returned by the toolkit.
We present the source code of the MChttpHandler abstract class as an example of Http handler implementation. The user is free to use any part of presented code to implement his own handler with required features and properties.
|
Copyright © 2024 Merge Healthcare Solutions Inc. All Rights Reserved. | ||||||
PREV NEXT | FRAMES NO FRAMES |