com.archimed.dicom.network
Class DimseUtil
java.lang.Object
com.archimed.dicom.network.DimseUtil
public class DimseUtil
- extends java.lang.Object
This is a utility class for creating and interpreting the command part of
DIMSE messages.
Note: This class is replaced by the com.archimed.dicom.Command class
and is maintained for backwards compatibility. New implementations should
make use of the Command class.
- Since:
- 1.00
- See Also:
com.archimed.dicom.Command
|
Method Summary |
static DicomObject |
createActionRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer actiontypeid)
|
static DicomObject |
createActionResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer actiontypeid)
|
static DicomObject |
createCancelRequest(java.lang.Integer messageid)
|
static DicomObject |
createCGetRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority)
|
static DicomObject |
createCGetResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer remaining,
java.lang.Integer completed,
java.lang.Integer failed,
java.lang.Integer warning)
|
static DicomObject |
createCreateRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent)
|
static DicomObject |
createCreateResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status)
|
static DicomObject |
createDeleteRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid)
|
static DicomObject |
createDeleteResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
java.lang.Integer status)
|
static DicomObject |
createEchoRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid)
|
static DicomObject |
createEchoResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer status)
|
static DicomObject |
createEventReportRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer eventtypeid)
|
static DicomObject |
createEventReportResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer eventtypeid)
|
static DicomObject |
createFindRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority)
|
static DicomObject |
createFindResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
boolean datapresent,
java.lang.Integer status)
|
static DicomObject |
createMoveRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority,
java.lang.String movedestination)
|
static DicomObject |
createMoveResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer remaining,
java.lang.Integer completed,
java.lang.Integer failed,
java.lang.Integer warning)
|
static DicomObject |
createNGetRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
int[] attributelist)
|
static DicomObject |
createNGetResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status)
|
static DicomObject |
createSetRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid)
|
static DicomObject |
createSetResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status)
|
static DicomObject |
createStoreRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority,
java.lang.String sopinstanceuid,
java.lang.String moveae,
java.lang.String moveid)
|
static DicomObject |
createStoreResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
java.lang.Integer status)
|
static boolean |
dataPresent(DicomObject dcm)
|
static int |
getAffectedSOPClass(DicomObject dicomset)
|
static java.lang.String |
getAffectedSOPInstance(DicomObject dicomset)
|
static java.lang.String |
getCommandName(int commandType)
|
static int |
getCommandType(DicomObject dicomset)
|
static int |
getMessageID(DicomObject dicomset)
|
static int |
getMessageIDBeingRespondedTo(DicomObject dicomset)
|
static int |
getPriority(DicomObject dicomset)
|
static int |
getRequestedSOPClass(DicomObject dicomset)
|
static java.lang.String |
getRequestedSOPInstance(DicomObject dicomset)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
N_EVENT_REPORT_REQUEST
public static final int N_EVENT_REPORT_REQUEST
- See Also:
- Constant Field Values
N_EVENT_REPORT_RESPONSE
public static final int N_EVENT_REPORT_RESPONSE
- See Also:
- Constant Field Values
N_GET_REQUEST
public static final int N_GET_REQUEST
- See Also:
- Constant Field Values
N_GET_RESPONSE
public static final int N_GET_RESPONSE
- See Also:
- Constant Field Values
N_SET_REQUEST
public static final int N_SET_REQUEST
- See Also:
- Constant Field Values
N_SET_RESPONSE
public static final int N_SET_RESPONSE
- See Also:
- Constant Field Values
N_ACTION_REQUEST
public static final int N_ACTION_REQUEST
- See Also:
- Constant Field Values
N_ACTION_RESPONSE
public static final int N_ACTION_RESPONSE
- See Also:
- Constant Field Values
N_CREATE_REQUEST
public static final int N_CREATE_REQUEST
- See Also:
- Constant Field Values
N_CREATE_RESPONSE
public static final int N_CREATE_RESPONSE
- See Also:
- Constant Field Values
N_DELETE_REQUEST
public static final int N_DELETE_REQUEST
- See Also:
- Constant Field Values
N_DELETE_RESPONSE
public static final int N_DELETE_RESPONSE
- See Also:
- Constant Field Values
C_STORE_REQUEST
public static final int C_STORE_REQUEST
- See Also:
- Constant Field Values
C_STORE_RESPONSE
public static final int C_STORE_RESPONSE
- See Also:
- Constant Field Values
C_GET_REQUEST
public static final int C_GET_REQUEST
- See Also:
- Constant Field Values
C_GET_RESPONSE
public static final int C_GET_RESPONSE
- See Also:
- Constant Field Values
C_FIND_REQUEST
public static final int C_FIND_REQUEST
- See Also:
- Constant Field Values
C_FIND_RESPONSE
public static final int C_FIND_RESPONSE
- See Also:
- Constant Field Values
C_MOVE_REQUEST
public static final int C_MOVE_REQUEST
- See Also:
- Constant Field Values
C_MOVE_RESPONSE
public static final int C_MOVE_RESPONSE
- See Also:
- Constant Field Values
C_ECHO_REQUEST
public static final int C_ECHO_REQUEST
- See Also:
- Constant Field Values
C_ECHO_RESPONSE
public static final int C_ECHO_RESPONSE
- See Also:
- Constant Field Values
C_CANCEL_FIND_REQUEST
public static final int C_CANCEL_FIND_REQUEST
- See Also:
- Constant Field Values
MEDIUM_PRIORITY
public static final int MEDIUM_PRIORITY
- See Also:
- Constant Field Values
HIGH_PRIORITY
public static final int HIGH_PRIORITY
- See Also:
- Constant Field Values
LOW_PRIORITY
public static final int LOW_PRIORITY
- See Also:
- Constant Field Values
DimseUtil
public DimseUtil()
getCommandName
public static java.lang.String getCommandName(int commandType)
getCommandType
public static int getCommandType(DicomObject dicomset)
throws IllegalValueException
- Throws:
IllegalValueException
getMessageID
public static int getMessageID(DicomObject dicomset)
throws IllegalValueException
- Throws:
IllegalValueException
getMessageIDBeingRespondedTo
public static int getMessageIDBeingRespondedTo(DicomObject dicomset)
throws IllegalValueException
- Throws:
IllegalValueException
getPriority
public static int getPriority(DicomObject dicomset)
throws IllegalValueException
- Throws:
IllegalValueException
getAffectedSOPClass
public static int getAffectedSOPClass(DicomObject dicomset)
throws IllegalValueException,
UnknownUIDException
- Throws:
IllegalValueException
UnknownUIDException
getAffectedSOPInstance
public static java.lang.String getAffectedSOPInstance(DicomObject dicomset)
throws IllegalValueException
- Throws:
IllegalValueException
getRequestedSOPClass
public static int getRequestedSOPClass(DicomObject dicomset)
throws IllegalValueException,
UnknownUIDException
- Throws:
IllegalValueException
UnknownUIDException
getRequestedSOPInstance
public static java.lang.String getRequestedSOPInstance(DicomObject dicomset)
throws IllegalValueException,
UnknownUIDException
- Throws:
IllegalValueException
UnknownUIDException
dataPresent
public static boolean dataPresent(DicomObject dcm)
throws IllegalValueException
- Throws:
IllegalValueException
createEventReportRequest
public static DicomObject createEventReportRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer eventtypeid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createEventReportResponse
public static DicomObject createEventReportResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer eventtypeid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createNGetRequest
public static DicomObject createNGetRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
int[] attributelist)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createNGetResponse
public static DicomObject createNGetResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createSetRequest
public static DicomObject createSetRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createSetResponse
public static DicomObject createSetResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createActionRequest
public static DicomObject createActionRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer actiontypeid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createActionResponse
public static DicomObject createActionResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer actiontypeid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createCreateRequest
public static DicomObject createCreateRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createCreateResponse
public static DicomObject createCreateResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
boolean datapresent,
java.lang.Integer status)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createDeleteRequest
public static DicomObject createDeleteRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createDeleteResponse
public static DicomObject createDeleteResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
java.lang.Integer status)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createEchoRequest
public static DicomObject createEchoRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createEchoResponse
public static DicomObject createEchoResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer status)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createMoveRequest
public static DicomObject createMoveRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority,
java.lang.String movedestination)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createMoveResponse
public static DicomObject createMoveResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer remaining,
java.lang.Integer completed,
java.lang.Integer failed,
java.lang.Integer warning)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createCGetRequest
public static DicomObject createCGetRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createCGetResponse
public static DicomObject createCGetResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
boolean datapresent,
java.lang.Integer status,
java.lang.Integer remaining,
java.lang.Integer completed,
java.lang.Integer failed,
java.lang.Integer warning)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createStoreRequest
public static DicomObject createStoreRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority,
java.lang.String sopinstanceuid,
java.lang.String moveae,
java.lang.String moveid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createStoreResponse
public static DicomObject createStoreResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.String sopinstanceuid,
java.lang.Integer status)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createFindRequest
public static DicomObject createFindRequest(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
java.lang.Integer priority)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createFindResponse
public static DicomObject createFindResponse(java.lang.Integer messageid,
java.lang.Integer sopclassuid,
boolean datapresent,
java.lang.Integer status)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
createCancelRequest
public static DicomObject createCancelRequest(java.lang.Integer messageid)
throws DicomException,
IllegalValueException
- Throws:
DicomException
IllegalValueException
Copyright © 1999-2008 Trispark. All Rights Reserved.