Class RocketChatSession


  • public class RocketChatSession
    extends java.lang.Object
    This class represents a Rocket.Chat REST API session, without any protection from threads waiting on sockets, etc.
    • Constructor Detail

      • RocketChatSession

        public RocketChatSession​(java.lang.String serverUrl,
                                 java.lang.String user,
                                 java.lang.String password,
                                 RocketChatSession.ProxySettings proxySettingsOrNull)
                          throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Create a session.
        Parameters:
        serverUrl - - the serverUrl of the Rocket.Chat server to post the message to.
        user -
        password -
        proxySettingsOrNull - - the proxy settings or null if not necessary.
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
    • Method Detail

      • checkConnection

        public void checkConnection()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • send

        public void send​(RocketChatMessage message)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException