Index

A C D G H M O P R S U W 
All Classes and Interfaces|All Packages

A

addMessage(String, Message) - Method in interface server.ChatDatabase
 
addMessage(String, Message) - Method in class server.DatabaseHandler
Inserts a message into the database.
addUserToChat(User, String) - Method in interface server.ChatDatabase
 
addUserToChat(User, String) - Method in class server.DatabaseHandler
Adds a user to a specific chat.

C

ChatDatabase - Interface in server
Interface defining database operations for the chat server.
closeConnection() - Method in interface server.ChatDatabase
 
closeConnection() - Method in class server.DatabaseHandler
Closes the active database connection.
ConnectHandler - Class in server
This http handler class handles the joining/connecting to a chat room.
ConnectHandler(DatabaseHandler, WebsocketHandler) - Constructor for class server.ConnectHandler
Constructor

D

DatabaseHandler - Class in server
Handles all database operations for the chat server.
DatabaseHandler() - Constructor for class server.DatabaseHandler
 
DisconnectHandler - Class in server
This http handler class handles the leaving/disconnecting from a chat room.
DisconnectHandler(DatabaseHandler, WebsocketHandler) - Constructor for class server.DisconnectHandler
Constructor

G

getAllChats(User) - Method in interface server.ChatDatabase
 
getAllChats(User) - Method in class server.DatabaseHandler
Retrieves the names of all chats that a user participates in.
getChat(String) - Method in interface server.ChatDatabase
 
getChat(String) - Method in class server.DatabaseHandler
Retrieves a complete Chat object from the database.
getChat(String) - Method in class server.UserChatMap
Gets the chat that a user is active in
GetChatHandler - Class in server
This http handler class handles the joining/connecting to a chat room.
GetChatHandler(DatabaseHandler) - Constructor for class server.GetChatHandler
Constructor
GetChatsHandler - Class in server
This http handler class handles the requesting of chatlists that a user is a member in.
GetChatsHandler(DatabaseHandler) - Constructor for class server.GetChatsHandler
Constructor
GetImageHandler - Class in server
This http handler class handles the joining/connecting to a chat room.
GetImageHandler(DatabaseHandler) - Constructor for class server.GetImageHandler
Constructor
getMessages(String, Instant) - Method in interface server.ChatDatabase
 
getMessages(String, Instant) - Method in class server.DatabaseHandler
Retrieves all messages from a specific chat that were sent after a given timestamp.
getUsers(String) - Method in class server.UserChatMap
Gets all users that are active in a chat
Gson_InstantTypeAdapter - Class in server
Source - https://stackoverflow.com/a/75502641
Posted by Basil Bourque, modified by community.
Gson_InstantTypeAdapter() - Constructor for class server.Gson_InstantTypeAdapter
Constructor added to prevent javadoc warning

H

handle(HttpExchange) - Method in class server.ConnectHandler
This handles the http connect request depending on the Request type.
handle(HttpExchange) - Method in class server.DisconnectHandler
This handles the disconnect http request.
handle(HttpExchange) - Method in class server.GetChatHandler
This handles the get_chat http request.
handle(HttpExchange) - Method in class server.GetChatsHandler
This handles the get_chats http request.
handle(HttpExchange) - Method in class server.GetImageHandler
This handles the http get_image request.
handle(HttpExchange) - Method in class server.PostImageHandler
This handles the http get request.
handle(HttpExchange) - Method in class server.SendMessageHandler
Deprecated.

M

main(String[]) - Static method in class server.DatabaseHandler
 
main(String[]) - Static method in class server.Server
This class creates and starts the Database connection, Http server and Websocket server.

O

onClose(WebSocket, int, String, boolean) - Method in class server.WebsocketHandler
Triggered when a connection is ended
onError(WebSocket, Exception) - Method in class server.WebsocketHandler
Triggered on error when running the websocket server
onMessage(WebSocket, String) - Method in class server.WebsocketHandler
Triggers on message received by a client.
onOpen(WebSocket, ClientHandshake) - Method in class server.WebsocketHandler
Prints out whenever someone connects to the websocket
onStart() - Method in class server.WebsocketHandler
 

P

PostImageHandler - Class in server
This http handler class handles the joining/connecting to a chat room.
PostImageHandler() - Constructor for class server.PostImageHandler
Constructor
put(String, String) - Method in class server.UserChatMap
Add or change a (user, chat) tuple.

R

read(JsonReader) - Method in class server.Gson_InstantTypeAdapter
Deserialization step.
remove(String) - Method in class server.UserChatMap
Removes a user from the map.
removeUserFromChat(User, String) - Method in interface server.ChatDatabase
 
removeUserFromChat(User, String) - Method in class server.DatabaseHandler
Removes a user from a specific chat.

S

send_chatlist(String) - Method in class server.WebsocketHandler
Sends the list of users, active and inactive in a chat to all active users in the chat.
SendMessageHandler - Class in server
Deprecated.
SendMessageHandler(DatabaseHandler) - Constructor for class server.SendMessageHandler
Deprecated.
server - package server
 
Server - Class in server
This class creates and starts the Database connection, Http server and Websocket server.
Server() - Constructor for class server.Server
Constructor added to prevent javadoc warning

U

UserChatMap - Class in server
Supporting bi directional data structure for storing (user, chat) tuples.
UserChatMap() - Constructor for class server.UserChatMap
Constructor added to prevent javadoc warning

W

WebsocketHandler - Class in server
This class handles the websocket connections to the server.
WebsocketHandler(int, DatabaseHandler) - Constructor for class server.WebsocketHandler
Constructor
write(JsonWriter, Instant) - Method in class server.Gson_InstantTypeAdapter
Serialization step.
A C D G H M O P R S U W 
All Classes and Interfaces|All Packages