Class SlackSession


  • public class SlackSession
    extends java.lang.Object
    This class represents a slack web hook session, without any protection from threads waiting on sockets, etc.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkConnection()  
      void close()  
      void send​(java.lang.String channel, java.lang.String message)  
      • Methods inherited from class java.lang.Object

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

      • SlackSession

        public SlackSession​(java.lang.String webHookUrl,
                            SlackSession.ProxySettings proxySettingsOrNull)
                     throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
        Create a session.
        Parameters:
        webHookUrl - - the webHookUrl to use for slack messages.
        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​(java.lang.String channel,
                         java.lang.String message)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • close

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