|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.network.dimse.messages.DimseMessageFactory
public class DimseMessageFactory
Factory to create DIMSE messages
| Constructor Summary | |
|---|---|
DimseMessageFactory()
|
|
| Method Summary | |
|---|---|
byte |
createMessageID()
Return a Message ID |
CCancelRequest |
newCCancelFindRequest()
Create a new C-FIND-RSP MESSAGE |
CCancelRequest |
newCCancelFindRequest(CommandSet aCommandDataset)
Create a new C-FIND-RSP MESSAGE |
CCancelRequest |
newCCancelRequest(int aMessageID)
Creates a new CCancelRequest |
CEchoRequestMessage |
newCEchoRequest()
|
CEchoRequestMessage |
newCEchoRequest(CommandSet aCommandSet)
create a new CEchoRequest message from a CommandSet |
CEchoRequestMessage |
newCEchoRequest(SOPClass aSOPClass)
|
CEchoRequestMessage |
newCEchoRequest(String aAffectedSOPClassUID)
create a new CEchoRequest message |
CEchoResponseMessage |
newCEchoResponse(CommandSet aCommandSet)
Create an new CEchoResponse message from a CommandSet |
CEchoResponseMessage |
newCEchoResponse(int messageIDBeingRespondedTo,
String affectedSOPClassUID,
DimseStatus aStatus)
|
CEchoResponseMessage |
newCEchoResponse(int messageIDBeingRespondedTo,
String affectedSOPClassUID,
int status)
|
CFindRequestMessage |
newCFindRequest(CommandSet aCommandDataset)
|
CFindRequestMessage |
newCFindRequest(SOPClass aSOPClass)
|
CFindRequestMessage |
newCFindRequest(String aAffectedSOPClassUID)
|
CFindRequestMessage |
newCFindRequest(String aAffectedSOPClassUID,
int Priority)
|
CFindResponseMessage |
newCFindResponse(CommandSet aCommandDataset)
Create a new CFindResponseMessage |
CFindResponseMessage |
newCFindResponse(int messageID,
String affectedSOPClassUID)
create new CFindResponseMessage with no DataSet, Success Status |
CFindResponseMessage |
newCFindResponse(int messageID,
String affectedSOPClassUID,
boolean hasDataset,
DimseStatus status)
create new CFindResponseMessage |
CFindResponseMessage |
newCFindResponse(int messageID,
String affectedSOPClassUID,
boolean aHasDataset,
int status)
|
CFindResponseMessage |
newCFindResponse(int aMessageID,
String aAffectedSOPClassUID,
int aHasDataset,
int aStatus)
|
CGetRequestMessage |
newCGetRequest(CommandSet aCommandDataset)
creates new C-Get-Request message from a CommandDataset |
CGetRequestMessage |
newCGetRequest(String aAffectedSOPClassUID)
creates new C-Get-Request messag |
CGetRequestMessage |
newCGetRequest(String aAffectedSOPClassUID,
int Priority)
creates new C-Get-Request messag |
CMoveRequestMessage |
newCMoveRequest(CommandSet aCommandDataset)
|
CMoveResponseMessage |
newCMoveResponse(CommandSet aCommandDataset)
|
CStoreRequestMessage |
newCStoreRequest()
|
CStoreRequestMessage |
newCStoreRequest(CommandSet aCommandDataset)
|
CStoreRequestMessage |
newCStoreRequest(String aAffectedSOPClassUID)
|
CStoreRequestMessage |
newCStoreRequest(String aAffectedSOPClassUID,
int aPriority)
|
CStoreResponseMessage |
newCStoreResponseMessage(CommandSet aCommandSet)
create a new CStoreResponseMessage |
CStoreResponseMessage |
newCStoreResponseMessage(int aMessageID,
String aAffectedSOPClassUID,
DimseStatus aStatus)
|
CStoreResponseMessage |
newCStoreResponseMessage(int aMessageID,
String aAffectedSOPClassUID,
int aHasDataset,
int aStatus)
Deprecated. use others methods |
DimseMessage |
newMessage(CommandSet aCommandDataSet)
Creates a new message from a CommandSet |
NActionRequest |
newNActionRequest(CommandSet aCommandSet)
|
NActionRequest |
newNActionRequest(String aRequestedSOPClassUID)
Create a new N-CREATE-RQ MESSAGE |
NActionRequest |
newNActionRequest(String aRequestedSOPClassUID,
String aRequestedSOPInstanceUID)
|
NActionResponse |
newNActionResponse(CommandSet aCommandDataSet)
|
NActionResponse |
newNActionResponse(int aMessageID,
String aAffectedSOPClassUID)
|
NCreateRequest |
newNCreateRequest(CommandSet aCommandDataSet)
Create a new N-CREATE-RQ MESSAGE from a CommandSet |
NCreateRequest |
newNCreateRequest(String aAffectedSOPClassUID)
Create a new N-CREATE-RQ MESSAGE |
NCreateResponse |
newNCreateResponse(CommandSet aCommandDataSet)
|
NCreateResponse |
newNCreateResponse(int aMessageID,
String aAffectedSOPClassUID,
int aStatus)
|
NCreateResponse |
newNCreateResponse(int aMessageID,
String aAffectedSOPClassUID,
int aHasDataset,
int aStatus)
|
NCreateResponse |
newNCreateResponse(String aAffectedSOPClassUID,
int aStatus)
|
NDeleteRequest |
newNDeleteRequest(CommandSet aCommandSet)
|
NDeleteRequest |
newNDeleteRequest(String aRequestedSOPClassUID)
|
NDeleteRequest |
newNDeleteRequest(String aRequestedSOPClassUID,
String aRequestedSOPInstanceUID)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DimseMessageFactory()
| Method Detail |
|---|
public byte createMessageID()
public CCancelRequest newCCancelFindRequest()
throws DicomException
DicomException
public CCancelRequest newCCancelFindRequest(CommandSet aCommandDataset)
throws DicomException
aCommandDataset -
DicomException
public CCancelRequest newCCancelRequest(int aMessageID)
throws DicomException
CCancelRequest
aMessageID - the MessageID
DicomException
public CEchoRequestMessage newCEchoRequest(CommandSet aCommandSet)
throws DicomException
CommandSet
aCommandSet - the CommandSet
DicomException
public CEchoRequestMessage newCEchoRequest()
throws DicomException
DicomException
public CEchoRequestMessage newCEchoRequest(SOPClass aSOPClass)
throws DicomException
DicomException
public CEchoRequestMessage newCEchoRequest(String aAffectedSOPClassUID)
throws DicomException
aAffectedSOPClassUID - the AffectedSOPClassUID
DicomExceptionpublic CEchoResponseMessage newCEchoResponse(CommandSet aCommandSet)
aCommandSet - the CommandSet
DimseException
public CEchoResponseMessage newCEchoResponse(int messageIDBeingRespondedTo,
String affectedSOPClassUID,
DimseStatus aStatus)
throws DicomException
DicomException
public CEchoResponseMessage newCEchoResponse(int messageIDBeingRespondedTo,
String affectedSOPClassUID,
int status)
throws DicomException
DicomException
public CFindRequestMessage newCFindRequest(CommandSet aCommandDataset)
throws DicomException
DicomException
public CFindRequestMessage newCFindRequest(SOPClass aSOPClass)
throws DicomException
DicomException
public CFindRequestMessage newCFindRequest(String aAffectedSOPClassUID)
throws DicomException
DicomException
public CFindRequestMessage newCFindRequest(String aAffectedSOPClassUID,
int Priority)
throws DicomException
DicomExceptionpublic CFindResponseMessage newCFindResponse(CommandSet aCommandDataset)
CFindResponseMessage
aCommandDataset - the command set
public CFindResponseMessage newCFindResponse(int messageID,
String affectedSOPClassUID,
boolean hasDataset,
DimseStatus status)
throws DicomException
CFindResponseMessage
messageID - the message IDaffectedSOPClassUID - the AffectedSOPClassUIDhasDataset - true is the message will contain a DataSetstatus - the Priority
DicomException
public CFindResponseMessage newCFindResponse(int messageID,
String affectedSOPClassUID,
boolean aHasDataset,
int status)
throws DicomException
DicomException
public CFindResponseMessage newCFindResponse(int aMessageID,
String aAffectedSOPClassUID,
int aHasDataset,
int aStatus)
throws DicomException
DicomException
public CFindResponseMessage newCFindResponse(int messageID,
String affectedSOPClassUID)
throws DicomException
CFindResponseMessage with no DataSet, Success Status
messageID - the message ID of the request messageaffectedSOPClassUID - the affected sopClass UID
DicomException - if errors occurs
public CGetRequestMessage newCGetRequest(CommandSet aCommandDataset)
throws DicomException
aCommandDataset - the CommandDataset
DicomException - if errors ocurs
public CGetRequestMessage newCGetRequest(String aAffectedSOPClassUID)
throws DicomException
aAffectedSOPClassUID -
DicomException - if errors ocurs
public CGetRequestMessage newCGetRequest(String aAffectedSOPClassUID,
int Priority)
throws DicomException
aAffectedSOPClassUID - Priority -
DicomException - if errors ocurs
public CMoveRequestMessage newCMoveRequest(CommandSet aCommandDataset)
throws DicomException
DicomException
public CMoveResponseMessage newCMoveResponse(CommandSet aCommandDataset)
throws DicomException
DicomException
public CStoreRequestMessage newCStoreRequest(CommandSet aCommandDataset)
throws DicomException
DicomException
public CStoreRequestMessage newCStoreRequest()
throws DicomException
DicomException
public CStoreRequestMessage newCStoreRequest(String aAffectedSOPClassUID)
throws DicomException
DicomException
public CStoreRequestMessage newCStoreRequest(String aAffectedSOPClassUID,
int aPriority)
throws DicomException
DicomException
public CStoreResponseMessage newCStoreResponseMessage(CommandSet aCommandSet)
throws DicomException
CStoreResponseMessage
aCommandSet - the CommandSet
DicomException
public CStoreResponseMessage newCStoreResponseMessage(int aMessageID,
String aAffectedSOPClassUID,
DimseStatus aStatus)
throws DimseException,
DicomException
DimseException
DicomException
public CStoreResponseMessage newCStoreResponseMessage(int aMessageID,
String aAffectedSOPClassUID,
int aHasDataset,
int aStatus)
throws DicomException
aMessageID - aAffectedSOPClassUID - aHasDataset - aStatus -
DicomException
public DimseMessage newMessage(CommandSet aCommandDataSet)
throws DicomException
CommandSet
aCommandDataSet - the CommandSet
DicomException - if error occurs
public NActionRequest newNActionRequest(CommandSet aCommandSet)
throws DicomException
DicomException
public NActionRequest newNActionRequest(String aRequestedSOPClassUID)
throws DicomException
aAffectedSOPClassUID -
DicomException
public NActionRequest newNActionRequest(String aRequestedSOPClassUID,
String aRequestedSOPInstanceUID)
throws DicomException
DicomException
public NActionResponse newNActionResponse(CommandSet aCommandDataSet)
throws DimseException,
DicomException
DimseException
DicomException
public NActionResponse newNActionResponse(int aMessageID,
String aAffectedSOPClassUID)
throws DicomException
DicomException
public NCreateRequest newNCreateRequest(CommandSet aCommandDataSet)
throws DicomException
aCommandDataset -
DicomException
public NCreateRequest newNCreateRequest(String aAffectedSOPClassUID)
throws DicomException
aAffectedSOPClassUID -
DicomException
public NCreateResponse newNCreateResponse(CommandSet aCommandDataSet)
throws DimseException,
DicomException
DimseException
DicomException
public NCreateResponse newNCreateResponse(int aMessageID,
String aAffectedSOPClassUID,
int aStatus)
throws DimseException,
DicomException
DimseException
DicomException
public NCreateResponse newNCreateResponse(int aMessageID,
String aAffectedSOPClassUID,
int aHasDataset,
int aStatus)
throws DicomException
DicomException
public NCreateResponse newNCreateResponse(String aAffectedSOPClassUID,
int aStatus)
throws DimseException,
DicomException
DimseException
DicomException
public NDeleteRequest newNDeleteRequest(CommandSet aCommandSet)
throws DicomException
DicomException
public NDeleteRequest newNDeleteRequest(String aRequestedSOPClassUID)
throws DicomException
DicomException
public NDeleteRequest newNDeleteRequest(String aRequestedSOPClassUID,
String aRequestedSOPInstanceUID)
throws DicomException
DicomException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||