@Deprecated public class LegacyRocketChatClient extends Object implements RocketChatClient
| Constructor and Description |
|---|
LegacyRocketChatClient(String serverUrl,
String user,
String password)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApiVersion()
Deprecated.
|
Room[] |
getChannels()
Deprecated.
|
Set<Room> |
getPublicRooms()
Deprecated.
|
String |
getRocketChatVersion()
Deprecated.
|
Room |
getRoom(String room)
Deprecated.
|
User |
getUser(String userId)
Deprecated.
Retrieves a
User from the Rocket.Chat server. |
User[] |
getUsers()
Deprecated.
Gets all of the users from a Rocket.Chat server, if you have a ton this will
take some time.
|
void |
logout()
Deprecated.
|
void |
send(Room room,
String message)
Deprecated.
sends a message to a channel
|
void |
send(String roomName,
String message)
Deprecated.
sends a message to a channel
|
public Set<Room> getPublicRooms() throws IOException
IOExceptionpublic void logout()
throws IOException
IOExceptionpublic String getApiVersion() throws IOException
IOExceptionpublic String getRocketChatVersion() throws IOException
IOExceptionpublic void send(String roomName, String message) throws sun.security.validator.ValidatorException, IOException
RocketChatClientsend in interface RocketChatClientroomName - to usemessage - to sendsun.security.validator.ValidatorException - in case of SSL errorsIOException - in case of communication errors with the RocketChat server backendpublic void send(Room room, String message) throws sun.security.validator.ValidatorException, IOException
RocketChatClientsend in interface RocketChatClientroom - to use (aka channel)message - to sendsun.security.validator.ValidatorException - in case of SSL errorsIOException - in case of communication errors with the RocketChat server backendpublic Room getRoom(String room) throws IOException
IOExceptionpublic User[] getUsers() throws IOException
RocketChatClientgetUsers in interface RocketChatClientUsersIOException - is thrown if there was a problem connecting, including if the result
wasn't successfulpublic User getUser(String userId) throws IOException
RocketChatClientUser from the Rocket.Chat server.getUser in interface RocketChatClientuserId - of the user to retrieveUserIOException - is thrown if there was a problem connecting, including if the result
wasn't successful or there is no userpublic Room[] getChannels() throws IOException
getChannels in interface RocketChatClientIOException - in case of communication errors with the RocketChat server backendCopyright © 2016. All rights reserved.