jdcm
Class DCMServer

java.lang.Object
  extended by java.lang.Thread
      extended by jdcm.DCMServer
All Implemented Interfaces:
java.lang.Runnable

public class DCMServer
extends java.lang.Thread

When an application acts as an receiver SCP, it waits for incoming TCP/IP connections at a certain port number and devotes a DCMServer thread to every incoming connection. The service provided is implemented in the methods (C_Store, C_Find, C_Move, C_Get, N_Action, N_Create, N_Delete, N_Get, N_Event_Report) defined by a sub-class that override the DCMServer methods.

The general pattern for a service method is to extract information from the request, access external resources, and then populate the response based on that information.

See Also:
DimseService, A_Associate, A_Release, A_Abort

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected DCMServer(java.net.Socket socket)
           
 
Method Summary
 void A_Abort(A_Abort abort)
          Override this methode to retrieve abort information
 void A_Associate(A_Associate associate)
          Override this methode to retrieve association information
 void A_Release(A_Release release)
          Override this methode to retrieve release information
 void C_Cancel(DimseService dimseService)
          Override this methode to support DIMSE C-CANCEL requests
 void C_Echo(C_Echo cecho)
          Override this methode to support DIMSE C-ECHO requests
 void C_Find(C_Find cfind)
          Override this methode to support DIMSE C-FIND requests
 void C_Get(C_Get cget)
          Override this methode to support DIMSE C-GET requests
 void C_Move(C_Move cmove)
          Override this methode to support DIMSE C-MOVE requests
 void C_Store(C_Store cstore)
          Override this methode to support DIMSE C-STORE requests
 void N_Action(N_Action naction)
          Override this methode to support DIMSE N-ACTION requests
 void N_Create(N_Create ncreate)
          Override this methode to support DIMSE N-CREATE requests
 void N_Delete(N_Delete ndelete)
          Override this methode to support DIMSE N-DELETE requests
 void N_Event_Report(N_Event_Report neventReport)
          Override this methode to support DIMSE N-EVENT-REPORT requests
 void N_Get(N_Get nget)
          Override this methode to support DIMSE N-GET requests
 void N_Set(N_Set nset)
          Override this methode to support DIMSE N-SET requests
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DCMServer

protected DCMServer(java.net.Socket socket)
             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

A_Associate

public void A_Associate(A_Associate associate)
                 throws java.io.IOException
Override this methode to retrieve association information

Throws:
java.io.IOException

A_Release

public void A_Release(A_Release release)
               throws java.io.IOException
Override this methode to retrieve release information

Throws:
java.io.IOException

A_Abort

public void A_Abort(A_Abort abort)
             throws java.io.IOException
Override this methode to retrieve abort information

Throws:
java.io.IOException

C_Echo

public void C_Echo(C_Echo cecho)
            throws java.io.IOException
Override this methode to support DIMSE C-ECHO requests

Throws:
java.io.IOException

C_Store

public void C_Store(C_Store cstore)
             throws java.io.IOException
Override this methode to support DIMSE C-STORE requests

Throws:
java.io.IOException

C_Move

public void C_Move(C_Move cmove)
            throws java.io.IOException
Override this methode to support DIMSE C-MOVE requests

Throws:
java.io.IOException

C_Find

public void C_Find(C_Find cfind)
            throws java.io.IOException
Override this methode to support DIMSE C-FIND requests

Throws:
java.io.IOException

C_Get

public void C_Get(C_Get cget)
           throws java.io.IOException
Override this methode to support DIMSE C-GET requests

Throws:
java.io.IOException

C_Cancel

public void C_Cancel(DimseService dimseService)
              throws java.io.IOException
Override this methode to support DIMSE C-CANCEL requests

Throws:
java.io.IOException

N_Event_Report

public void N_Event_Report(N_Event_Report neventReport)
                    throws java.io.IOException
Override this methode to support DIMSE N-EVENT-REPORT requests

Throws:
java.io.IOException

N_Get

public void N_Get(N_Get nget)
           throws java.io.IOException
Override this methode to support DIMSE N-GET requests

Throws:
java.io.IOException

N_Set

public void N_Set(N_Set nset)
           throws java.io.IOException
Override this methode to support DIMSE N-SET requests

Throws:
java.io.IOException

N_Action

public void N_Action(N_Action naction)
              throws java.io.IOException
Override this methode to support DIMSE N-ACTION requests

Throws:
java.io.IOException

N_Create

public void N_Create(N_Create ncreate)
              throws java.io.IOException
Override this methode to support DIMSE N-CREATE requests

Throws:
java.io.IOException

N_Delete

public void N_Delete(N_Delete ndelete)
              throws java.io.IOException
Override this methode to support DIMSE N-DELETE requests

Throws:
java.io.IOException

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread