Class RequestTypeServer
- All Implemented Interfaces:
Runnable
The RequestTypeServer
implements an HTTP server that responds
to requests of a specified type and dispatches the further
handling to a derived class corresponding to the request type.
Requests are of the form "?requestType=XXXX" where XXXX is the request type.
This includes responding to WADO GET requests as defined by DICOM PS 3.18 (ISO 17432), which provides a standard web (http) interface through which to retrieve DICOM objects either as DICOM files or as derived JPEG images.
In addition to servicing WADO requests, it provides lists of patients, studies and series that link to WADO URLs.
It extends extends HttpServer
and implements
generateResponseToGetRequest()
.
The main method is also useful in its own right as a command-line DICOM Storage SCP utility, which will store incoming files in a specified directory and database and server them up via WADO.
For example:
% java -server -Djava.awt.headless=true -Xms128m -Xmx512m -cp ./pixelmed.jar:./hsqldb.jar:./commons-compress-1.12.jar:./vecmath1.2-1.14.jar:./commons-codec-1.3.jar com.pixelmed.web.RequestTypeServer ./testwadodb ./testwadoimages 4007 WADOTEST 7091 "192.168.1.100" IMAGEDISPLAY
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.pixelmed.web.HttpServer
HttpServer.Worker
-
Field Summary
Fields inherited from class com.pixelmed.web.HttpServer
defaultNumberOfWorkers
-
Constructor Summary
ConstructorsConstructorDescriptionRequestTypeServer
(DatabaseInformationModel databaseInformationModel, int wadoPort, String rootURL, String stylesheetPath, String requestTypeToUseForInstances) RequestTypeServer
(DatabaseInformationModel databaseInformationModel, WebServerApplicationProperties webServerApplicationProperties) RequestTypeServer
(String dataBaseFileName, String savedImagesFolderName, int dicomPort, String calledAETitle, int wadoPort, String rootURL, String stylesheetPath, String requestTypeToUseForInstances) RequestTypeServer
(String dataBaseFileName, String savedImagesFolderName, int dicomPort, String calledAETitle, int wadoPort, String rootURL, String stylesheetPath, String requestTypeToUseForInstances, int numberOfWorkers) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpServer.Worker
static void
Wait for http connections and process requests; also wait for DICOM associations and store received files in the database.Methods inherited from class com.pixelmed.web.HttpServer
initializeThreadPool, initializeThreadPool, run
-
Constructor Details
-
RequestTypeServer
-
RequestTypeServer
-
RequestTypeServer
public RequestTypeServer(DatabaseInformationModel databaseInformationModel, WebServerApplicationProperties webServerApplicationProperties) -
RequestTypeServer
public RequestTypeServer(DatabaseInformationModel databaseInformationModel, int wadoPort, String rootURL, String stylesheetPath, String requestTypeToUseForInstances)
-
-
Method Details
-
createWorker
- Specified by:
createWorker
in classHttpServer
-
main
Wait for http connections and process requests; also wait for DICOM associations and store received files in the database.
- Parameters:
arg
- array of seven strings - the database filename, the saved images folder, the DICOM port, the DICOM AET, the HTTP port, the host address to build the root URL, the request type to use for instances (one of INSTANCELIST, IMAGEDISPLAY, or APPLETDISPLAY),
-