Class RocketChatSession
- java.lang.Object
-
- org.apache.manifoldcf.crawler.notifications.rocketchat.RocketChatSession
-
public class RocketChatSession extends java.lang.ObjectThis class represents a Rocket.Chat REST API session, without any protection from threads waiting on sockets, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classRocketChatSession.ProxySettings
-
Constructor Summary
Constructors Constructor Description RocketChatSession(java.lang.String serverUrl, java.lang.String user, java.lang.String password, RocketChatSession.ProxySettings proxySettingsOrNull)Create a session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckConnection()voidclose()voidsend(RocketChatMessage message)
-
-
-
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.ManifoldCFExceptionCreate 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
-
-