Class SlackSession
- java.lang.Object
-
- org.apache.manifoldcf.crawler.notifications.slack.SlackSession
-
public class SlackSession extends java.lang.ObjectThis class represents a slack web hook session, without any protection from threads waiting on sockets, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSlackSession.ProxySettings
-
Constructor Summary
Constructors Constructor Description SlackSession(java.lang.String webHookUrl, SlackSession.ProxySettings proxySettingsOrNull)Create a session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckConnection()voidclose()voidsend(java.lang.String channel, java.lang.String message)
-
-
-
Constructor Detail
-
SlackSession
public SlackSession(java.lang.String webHookUrl, SlackSession.ProxySettings proxySettingsOrNull) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionCreate 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
-
-