org.dcm4che2.net
Class CommandUtils

java.lang.Object
  extended by org.dcm4che2.net.CommandUtils

public class CommandUtils
extends java.lang.Object

Since:
Oct 6, 2005
Version:
$Reversion$ $Date: 2010-06-10 14:40:01 +0200 (Thu, 10 Jun 2010) $
Author:
gunter zeilinger(gunterze@gmail.com)

Field Summary
static int C_CANCEL_RQ
           
static int C_ECHO_RQ
           
static int C_ECHO_RSP
           
static int C_FIND_RQ
           
static int C_FIND_RSP
           
static int C_GET_RQ
           
static int C_GET_RSP
           
static int C_MOVE_RQ
           
static int C_MOVE_RSP
           
static int C_STORE_RQ
           
static int C_STORE_RSP
           
static int HIGH
           
static int LOW
           
static int N_ACTION_RQ
           
static int N_ACTION_RSP
           
static int N_CREATE_RQ
           
static int N_CREATE_RSP
           
static int N_DELETE_RQ
           
static int N_DELETE_RSP
           
static int N_EVENT_REPORT_RQ
           
static int N_EVENT_REPORT_RSP
           
static int N_GET_RQ
           
static int N_GET_RSP
           
static int N_SET_RQ
           
static int N_SET_RSP
           
static int NO_DATASET
           
static int NORMAL
           
static int PENDING
           
static int SUCCESS
           
 
Constructor Summary
CommandUtils()
           
 
Method Summary
static int getWithDatasetType()
           
static boolean hasDataset(DicomObject dcmobj)
           
static boolean isCancelRQ(DicomObject dcmobj)
           
static boolean isIncludeUIDinRSP()
           
static boolean isPending(DicomObject cmd)
           
static boolean isResponse(DicomObject dcmobj)
           
static DicomObject mkCCancelRQ(int msgId)
           
static DicomObject mkCEchoRQ(int msgId, java.lang.String cuid)
           
static DicomObject mkCFindRQ(int msgId, java.lang.String cuid, int priority)
           
static DicomObject mkCGetRQ(int msgId, java.lang.String cuid, int priority)
           
static DicomObject mkCMoveRQ(int msgId, java.lang.String cuid, int priority, java.lang.String destination)
           
static DicomObject mkCStoreRQ(int msgId, java.lang.String cuid, java.lang.String iuid, int priority)
           
static DicomObject mkCStoreRQ(int msgId, java.lang.String cuid, java.lang.String iuid, int priority, java.lang.String moveOriginatorAET, int moveOriginatorMsgId)
           
static DicomObject mkNActionRQ(int msgId, java.lang.String cuid, java.lang.String iuid, int actionTypeID, DicomObject data)
           
static DicomObject mkNCreateRQ(int msgId, java.lang.String cuid, java.lang.String iuid)
           
static DicomObject mkNDeleteRQ(int msgId, java.lang.String cuid, java.lang.String iuid)
           
static DicomObject mkNEventReportRQ(int msgId, java.lang.String cuid, java.lang.String iuid, int eventTypeID, DicomObject data)
           
static DicomObject mkNGetRQ(int msgId, java.lang.String cuid, java.lang.String iuid, int[] tags)
           
static DicomObject mkNSetRQ(int msgId, java.lang.String cuid, java.lang.String iuid)
           
static DicomObject mkRSP(DicomObject rq, int status)
           
static void setIncludeUIDinRSP(boolean includeUIDinRSP)
           
static void setWithDatasetType(int withDatasetType)
           
static java.lang.String toString(DicomObject cmd, int pcid, java.lang.String tsuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS
See Also:
Constant Field Values

PENDING

public static final int PENDING
See Also:
Constant Field Values

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

HIGH

public static final int HIGH
See Also:
Constant Field Values

LOW

public static final int LOW
See Also:
Constant Field Values

C_STORE_RQ

public static final int C_STORE_RQ
See Also:
Constant Field Values

C_STORE_RSP

public static final int C_STORE_RSP
See Also:
Constant Field Values

C_GET_RQ

public static final int C_GET_RQ
See Also:
Constant Field Values

C_GET_RSP

public static final int C_GET_RSP
See Also:
Constant Field Values

C_FIND_RQ

public static final int C_FIND_RQ
See Also:
Constant Field Values

C_FIND_RSP

public static final int C_FIND_RSP
See Also:
Constant Field Values

C_MOVE_RQ

public static final int C_MOVE_RQ
See Also:
Constant Field Values

C_MOVE_RSP

public static final int C_MOVE_RSP
See Also:
Constant Field Values

C_ECHO_RQ

public static final int C_ECHO_RQ
See Also:
Constant Field Values

C_ECHO_RSP

public static final int C_ECHO_RSP
See Also:
Constant Field Values

N_EVENT_REPORT_RQ

public static final int N_EVENT_REPORT_RQ
See Also:
Constant Field Values

N_EVENT_REPORT_RSP

public static final int N_EVENT_REPORT_RSP
See Also:
Constant Field Values

N_GET_RQ

public static final int N_GET_RQ
See Also:
Constant Field Values

N_GET_RSP

public static final int N_GET_RSP
See Also:
Constant Field Values

N_SET_RQ

public static final int N_SET_RQ
See Also:
Constant Field Values

N_SET_RSP

public static final int N_SET_RSP
See Also:
Constant Field Values

N_ACTION_RQ

public static final int N_ACTION_RQ
See Also:
Constant Field Values

N_ACTION_RSP

public static final int N_ACTION_RSP
See Also:
Constant Field Values

N_CREATE_RQ

public static final int N_CREATE_RQ
See Also:
Constant Field Values

N_CREATE_RSP

public static final int N_CREATE_RSP
See Also:
Constant Field Values

N_DELETE_RQ

public static final int N_DELETE_RQ
See Also:
Constant Field Values

N_DELETE_RSP

public static final int N_DELETE_RSP
See Also:
Constant Field Values

C_CANCEL_RQ

public static final int C_CANCEL_RQ
See Also:
Constant Field Values

NO_DATASET

public static final int NO_DATASET
See Also:
Constant Field Values
Constructor Detail

CommandUtils

public CommandUtils()
Method Detail

isResponse

public static boolean isResponse(DicomObject dcmobj)

isCancelRQ

public static boolean isCancelRQ(DicomObject dcmobj)

mkCStoreRQ

public static DicomObject mkCStoreRQ(int msgId,
                                     java.lang.String cuid,
                                     java.lang.String iuid,
                                     int priority)

mkCStoreRQ

public static DicomObject mkCStoreRQ(int msgId,
                                     java.lang.String cuid,
                                     java.lang.String iuid,
                                     int priority,
                                     java.lang.String moveOriginatorAET,
                                     int moveOriginatorMsgId)

mkCFindRQ

public static DicomObject mkCFindRQ(int msgId,
                                    java.lang.String cuid,
                                    int priority)

mkCGetRQ

public static DicomObject mkCGetRQ(int msgId,
                                   java.lang.String cuid,
                                   int priority)

mkCMoveRQ

public static DicomObject mkCMoveRQ(int msgId,
                                    java.lang.String cuid,
                                    int priority,
                                    java.lang.String destination)

mkCCancelRQ

public static DicomObject mkCCancelRQ(int msgId)

mkCEchoRQ

public static DicomObject mkCEchoRQ(int msgId,
                                    java.lang.String cuid)

mkNEventReportRQ

public static DicomObject mkNEventReportRQ(int msgId,
                                           java.lang.String cuid,
                                           java.lang.String iuid,
                                           int eventTypeID,
                                           DicomObject data)

mkNGetRQ

public static DicomObject mkNGetRQ(int msgId,
                                   java.lang.String cuid,
                                   java.lang.String iuid,
                                   int[] tags)

mkNSetRQ

public static DicomObject mkNSetRQ(int msgId,
                                   java.lang.String cuid,
                                   java.lang.String iuid)

mkNActionRQ

public static DicomObject mkNActionRQ(int msgId,
                                      java.lang.String cuid,
                                      java.lang.String iuid,
                                      int actionTypeID,
                                      DicomObject data)

mkNCreateRQ

public static DicomObject mkNCreateRQ(int msgId,
                                      java.lang.String cuid,
                                      java.lang.String iuid)

mkNDeleteRQ

public static DicomObject mkNDeleteRQ(int msgId,
                                      java.lang.String cuid,
                                      java.lang.String iuid)

mkRSP

public static DicomObject mkRSP(DicomObject rq,
                                int status)

isIncludeUIDinRSP

public static boolean isIncludeUIDinRSP()

setIncludeUIDinRSP

public static void setIncludeUIDinRSP(boolean includeUIDinRSP)

getWithDatasetType

public static int getWithDatasetType()

setWithDatasetType

public static void setWithDatasetType(int withDatasetType)

hasDataset

public static boolean hasDataset(DicomObject dcmobj)

isPending

public static boolean isPending(DicomObject cmd)

toString

public static java.lang.String toString(DicomObject cmd,
                                        int pcid,
                                        java.lang.String tsuid)


Copyright © 2011 dcm4che. All Rights Reserved.