Index
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
Messageobject - 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
Messageentities ordered by theirsentAttimestamp 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
Messageobjects 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
MessagetoMessageDTOand vise versa - MessageMapper() - Constructor for class com.nadiyar.kiwi.MessageMapper
- MessageRepository - Interface in com.nadiyar.kiwi.repository
-
Repository interface for accessing and managing
Messageentities. - 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
MessageDTOtoMessageand returns an object of type MessageDTO - toMessageDTO(Message) - Method in class com.nadiyar.kiwi.MessageMapper
-
Convert from
MessagetoMessageDTOand 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
All Classes and Interfaces|All Packages