public class RocketChatSession
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RocketChatSession.ProxySettings |
| Constructor and Description |
|---|
RocketChatSession(java.lang.String serverUrl,
java.lang.String user,
java.lang.String password,
RocketChatSession.ProxySettings proxySettingsOrNull)
Create a session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkConnection() |
void |
close() |
void |
send(RocketChatMessage message) |
public RocketChatSession(java.lang.String serverUrl,
java.lang.String user,
java.lang.String password,
RocketChatSession.ProxySettings proxySettingsOrNull)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
serverUrl - - the serverUrl of the Rocket.Chat server to post the message to.user - password - proxySettingsOrNull - - the proxy settings or null if not necessary.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void checkConnection()
throws java.io.IOException
java.io.IOExceptionpublic void send(RocketChatMessage message) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException