Class DummyMessageHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Method called by service if the MessageHandler should disconnect from the MessageQueue server.
      void connect()
      Method called by service if the MessageHandler should connect to the MessageQueue server and start processing incoming calls.
      java.lang.Object getConnectionFactory()
      Method returning the connection factory used to set-up the message queues.
      void init​(java.util.Properties config, PKIMessageParser parser, MessageResponseCallback callback)
      Method called after instantiation and should check configuration and prepare everything for connection with the message queue server.
      boolean isConnected()
      Method returning if the handler is currently connected to the JMS broker.
      void sendMessage​(java.lang.String messageId, byte[] messageData)
      Method to send a message to the MQ server out queue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • revokeMessageRecieved

        public boolean revokeMessageRecieved
      • SETTING_WAITTIME

        public static final java.lang.String SETTING_WAITTIME
        See Also:
        Constant Field Values
      • base64Cert

        public static byte[] base64Cert
    • Constructor Detail

      • DummyMessageHandler

        public DummyMessageHandler()
    • Method Detail

      • init

        public void init​(java.util.Properties config,
                         PKIMessageParser parser,
                         MessageResponseCallback callback)
                  throws MessageException
        Description copied from interface: MessageHandler
        Method called after instantiation and should check configuration and prepare everything for connection with the message queue server.
        Specified by:
        init in interface MessageHandler
        Parameters:
        config - the configuration.
        parser - the message parser configuration.
        callback - the callback interface where response messages are sent.
        Throws:
        MessageException - if configuration problems or other internal problems occurred.
      • connect

        public void connect()
                     throws MessageException,
                            java.io.IOException
        Description copied from interface: MessageHandler
        Method called by service if the MessageHandler should connect to the MessageQueue server and start processing incoming calls.
        Specified by:
        connect in interface MessageHandler
        Throws:
        MessageException - if configuration problems or other internal problems occurred connecting to the MQ server.
        java.io.IOException - if communication problems occurred connecting from the message server.
      • sendMessage

        public void sendMessage​(java.lang.String messageId,
                                byte[] messageData)
                         throws MessageException,
                                java.io.IOException
        Description copied from interface: MessageHandler
        Method to send a message to the MQ server out queue.
        Specified by:
        sendMessage in interface MessageHandler
        Parameters:
        messageId - the id of the message
        Throws:
        MessageException - if configuration problems or other internal problems occurred connecting to the MQ server.
        java.io.IOException - if communication problems occurred connecting and sending to the message server.
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: MessageHandler
        Method called by service if the MessageHandler should disconnect from the MessageQueue server.
        Specified by:
        close in interface MessageHandler
        Throws:
        java.io.IOException - if communication problems occurred disconnecting from the message server.
      • getConnectionFactory

        public java.lang.Object getConnectionFactory()
                                              throws MessageException,
                                                     java.io.IOException
        Description copied from interface: MessageHandler
        Method returning the connection factory used to set-up the message queues. Used only for special purposes when not extending the implementing class. Required method for extending classes to provide the connection factory to use when connecting to the message server.
        Specified by:
        getConnectionFactory in interface MessageHandler
        Returns:
        a connection factory to use to set up the message processing environment, never null.
        Throws:
        MessageException - if internal error or configuration problems occurred.
        java.io.IOException - if communication problems occurred with the message service.
      • isConnected

        public boolean isConnected()
        Description copied from interface: MessageHandler
        Method returning if the handler is currently connected to the JMS broker.
        Specified by:
        isConnected in interface MessageHandler
        Returns:
        true if connected.