Class VerificationSOPClassSCU


  • public class VerificationSOPClassSCU
    extends SOPClass

    This class implements the SCU role of the Verification SOP Class.

    The class has no methods other than the constructor (and a main method for testing). The constructor establishes an association, sends the C-ECHO request, and releases the association.

    Debugging messages with a varying degree of verbosity can be activated.

    For example:

    try {
        new VerificationSOPClassSCU("theirhost","104","ECHOSCP","ECHOSCU",0);
    }
    catch (Exception e) {
        slf4jlogger.error("",e);
    }
     
    • Constructor Detail

      • VerificationSOPClassSCU

        public VerificationSOPClassSCU​(java.lang.String hostname,
                                       int port,
                                       java.lang.String calledAETitle,
                                       java.lang.String callingAETitle,
                                       boolean secureTransport,
                                       int debugLevel)
                                throws DicomNetworkException,
                                       DicomException,
                                       java.io.IOException

        Establish an association to the specified AE, perform verification (send a C-ECHO request), and release the association.

        Parameters:
        hostname - their hostname or IP address
        port - their port
        calledAETitle - their AE Title
        callingAETitle - our AE Title
        secureTransport -
        debugLevel - ignored
        Throws:
        java.io.IOException
        DicomException
        DicomNetworkException
      • VerificationSOPClassSCU

        public VerificationSOPClassSCU​(java.lang.String hostname,
                                       int port,
                                       java.lang.String calledAETitle,
                                       java.lang.String callingAETitle,
                                       boolean secureTransport)
                                throws DicomNetworkException,
                                       DicomException,
                                       java.io.IOException

        Establish an association to the specified AE, perform verification (send a C-ECHO request), and release the association.

        Parameters:
        hostname - their hostname or IP address
        port - their port
        calledAETitle - their AE Title
        callingAETitle - our AE Title
        secureTransport -
        Throws:
        java.io.IOException
        DicomException
        DicomNetworkException
      • VerificationSOPClassSCU

        public VerificationSOPClassSCU​(java.lang.String hostname,
                                       int port,
                                       java.lang.String calledAETitle,
                                       java.lang.String callingAETitle,
                                       boolean secureTransport,
                                       java.lang.String username,
                                       java.lang.String password,
                                       int debugLevel)
                                throws DicomNetworkException,
                                       DicomException,
                                       java.io.IOException

        Establish an association to the specified AE, perform verification (send a C-ECHO request), and release the association.

        Successful connection, association negotiation and C-ECHO command succsess status is indicated by the lack of an exception.

        Parameters:
        hostname - their hostname or IP address
        port - their port
        calledAETitle - their AE Title
        callingAETitle - our AE Title
        secureTransport -
        username - may be null if no user identity
        password - may be null if no user identity or no password required
        debugLevel - ignored
        Throws:
        java.io.IOException
        DicomException
        DicomNetworkException - if the connection is refused, the association reqeust is reject, or the C-ECHO command reports other than a success status
      • VerificationSOPClassSCU

        public VerificationSOPClassSCU​(java.lang.String hostname,
                                       int port,
                                       java.lang.String calledAETitle,
                                       java.lang.String callingAETitle,
                                       boolean secureTransport,
                                       java.lang.String username,
                                       java.lang.String password)
                                throws DicomNetworkException,
                                       DicomException,
                                       java.io.IOException

        Establish an association to the specified AE, perform verification (send a C-ECHO request), and release the association.

        Successful connection, association negotiation and C-ECHO command succsess status is indicated by the lack of an exception.

        Parameters:
        hostname - their hostname or IP address
        port - their port
        calledAETitle - their AE Title
        callingAETitle - our AE Title
        secureTransport -
        username - may be null if no user identity
        password - may be null if no user identity or no password required
        Throws:
        java.io.IOException
        DicomException
        DicomNetworkException - if the connection is refused, the association reqeust is reject, or the C-ECHO command reports other than a success status
    • Method Detail

      • main

        public static void main​(java.lang.String[] arg)

        For testing, establish an association to the specified AE and perform verification (send a C-ECHO request).

        Parameters:
        arg - array of four to seven strings - their hostname, their port, their AE Title, our AE Title, and optionally a string flag valued SECURE or NONSECURE, an optional username and an optional password