Index

B C E F G K M R S T U W 
All Classes and Interfaces|All Packages

B

Broker Configuration - Search tag in class com.nadiyar.kiwi.websocket.WebsocketBrokerConfig
Section
build() - Method in class com.nadiyar.kiwi.model.FullMessageBuilder
create a new Message object
build() - Method in interface com.nadiyar.kiwi.model.MessageBuilder
 

C

ChatWebsocketController - Class in com.nadiyar.kiwi.controller
 
ChatWebsocketController() - Constructor for class com.nadiyar.kiwi.controller.ChatWebsocketController
 
com.nadiyar.kiwi - package com.nadiyar.kiwi
 
com.nadiyar.kiwi.controller - package com.nadiyar.kiwi.controller
 
com.nadiyar.kiwi.model - package com.nadiyar.kiwi.model
 
com.nadiyar.kiwi.repository - package com.nadiyar.kiwi.repository
 
com.nadiyar.kiwi.websocket - package com.nadiyar.kiwi.websocket
 
configureMessageBroker(MessageBrokerRegistry) - Method in class com.nadiyar.kiwi.websocket.WebsocketBrokerConfig
Configures the message broker options.

E

Endpoint Registration - Search tag in class com.nadiyar.kiwi.websocket.WebsocketBrokerConfig
Section
Example - Search tag in com.nadiyar.kiwi.controller.MessageHistoryController.getCompeleteHistory()
Section
Example JSON - Search tag in class com.nadiyar.kiwi.MessageDTO
Section

F

findAllByOrderBySentAtAsc() - Method in interface com.nadiyar.kiwi.repository.MessageRepository
Retrieves all Message entities ordered by their sentAt timestamp in ascending order.
FullMessageBuilder - Class in com.nadiyar.kiwi.model
Use this to instanciate a full message object including content, sentBy and sentAt
FullMessageBuilder() - Constructor for class com.nadiyar.kiwi.model.FullMessageBuilder
 

G

getAllMessages() - Method in class com.nadiyar.kiwi.MessageService
Return all messages saved in the database in json
getCompeleteHistory() - Method in class com.nadiyar.kiwi.controller.MessageHistoryController
REST API returning all previously sent messages

K

KiwiApplication - Class in com.nadiyar.kiwi
Application starting point
KiwiApplication() - Constructor for class com.nadiyar.kiwi.KiwiApplication
 

M

main(String[]) - Static method in class com.nadiyar.kiwi.KiwiApplication
Application main method
Message - Class in com.nadiyar.kiwi.model
 
Message() - Constructor for class com.nadiyar.kiwi.model.Message
 
MessageBuilder - Interface in com.nadiyar.kiwi.model
Builder pattern to make instantiating Message objects easier
MessageDTO - Class in com.nadiyar.kiwi
Represents a chat message sent between clients in the WebSocket system.
MessageDTO() - Constructor for class com.nadiyar.kiwi.MessageDTO
 
MessageHistoryController - Class in com.nadiyar.kiwi.controller
 
MessageHistoryController() - Constructor for class com.nadiyar.kiwi.controller.MessageHistoryController
 
MessageMapper - Class in com.nadiyar.kiwi
Class used to convert Message to MessageDTO and vise versa
MessageMapper() - Constructor for class com.nadiyar.kiwi.MessageMapper
 
MessageRepository - Interface in com.nadiyar.kiwi.repository
Repository interface for accessing and managing Message entities.
MessageService - Class in com.nadiyar.kiwi
Used to handle operations related to a Message
MessageService(MessageRepository) - Constructor for class com.nadiyar.kiwi.MessageService
 
msgContent(String) - Method in class com.nadiyar.kiwi.model.FullMessageBuilder
Set content - what is message content
msgContent(String) - Method in interface com.nadiyar.kiwi.model.MessageBuilder
 
msgSentAt(ZonedDateTime) - Method in class com.nadiyar.kiwi.model.FullMessageBuilder
Set sent time - when is message sent
msgSentAt(ZonedDateTime) - Method in interface com.nadiyar.kiwi.model.MessageBuilder
 
msgSentBy(String) - Method in class com.nadiyar.kiwi.model.FullMessageBuilder
Set sentBy - who sent the message
msgSentBy(String) - Method in interface com.nadiyar.kiwi.model.MessageBuilder
 

R

registerStompEndpoints(StompEndpointRegistry) - Method in class com.nadiyar.kiwi.websocket.WebsocketBrokerConfig
Registers STOMP WebSocket endpoints that clients can connect to.

S

saveMessage(String, String) - Method in class com.nadiyar.kiwi.MessageService
Write a message to database
send(MessageDTO) - Method in class com.nadiyar.kiwi.controller.ChatWebsocketController
Websocket endpoint for receiving and handling new messages

T

toMessage(MessageDTO) - Method in class com.nadiyar.kiwi.MessageMapper
Convert from MessageDTO to Message and returns an object of type MessageDTO
toMessageDTO(Message) - Method in class com.nadiyar.kiwi.MessageMapper
Convert from Message to MessageDTO and returns the Message

U

usage example - Search tag in com.nadiyar.kiwi.controller.ChatWebsocketController.send(MessageDTO)
Section

W

WebsocketBrokerConfig - Class in com.nadiyar.kiwi.websocket
WebSocket configuration for enabling STOMP messaging in the application.
WebsocketBrokerConfig() - Constructor for class com.nadiyar.kiwi.websocket.WebsocketBrokerConfig
 
B C E F G K M R S T U W 
All Classes and Interfaces|All Packages