Commit Graph

212 Commits

Author SHA1 Message Date
Lars Simon Winzer 4deeace547 Refactor: dispatch method of ResponseDispatcher is now unchecked and throws ResponseDispatchException 2026-04-01 12:46:14 +02:00
Lars Simon Winzer 68e8bc76b2 Add: Wrapper ResponseDispatchException for ResponseDispatcher 2026-04-01 12:44:37 +02:00
Jona Walpert cb65ad2ed0 Merge branch 'feat/ui-switch-lobby-game' into 'main'
Feat/ui switch lobby game

See merge request cs108-fs26/Gruppe-13!66
2026-04-01 10:34:31 +00:00
Jona Walpert 1d322f5cd8 Style: Fix checkstyle for failed pipeline 2026-04-01 12:31:58 +02:00
Jona Walpert 40ea45460e Docs: JavaDoc for client side standard constructors 2026-04-01 11:44:46 +02:00
Jona Walpert 60f326c4d5 Style: line length checkstyle fix 2026-04-01 11:34:55 +02:00
Jona Walpert 2906c59f25 Merge branch 'main' into 'feat/ui-switch-lobby-game' 2026-04-01 11:24:39 +02:00
Lars Simon Winzer 307c234c91 Docs: Fix javaDoc comments to match changes 2026-03-31 20:47:46 +02:00
Lars Simon Winzer 2ad2981724 Docs: Improve javaDoc for getSessionId method in Response 2026-03-31 20:36:40 +02:00
Lars Simon Winzer 945418798b Refactor: Replace dedicated fields for SessionId and request id with RequestContext 2026-03-31 20:35:29 +02:00
Lars Simon Winzer 34d782e252 Refactor: Use RequestContext in SessionReader when instantiating responses 2026-03-31 20:32:11 +02:00
Lars Simon Winzer 665e006b89 Refactor: Update response classes to use RequestContext instead of SessionId + request id
BREAKING CHANGES
2026-03-31 20:27:36 +02:00
Lars Simon Winzer 3a0248e0c3 Refactor: Update CommandParser interface to use generic type 2026-03-31 19:29:08 +02:00
Lars Simon Winzer 972e46f4d0 Style: Apply Spotless 2026-03-31 12:27:17 +02:00
Lars Simon Winzer 4e9082f106 Chore: Update Javadoc for ProtocolParser 2026-03-31 12:23:43 +02:00
Lars Simon Winzer e210bd1d49 Chore: Update Javadoc for Session classes 2026-03-31 12:23:30 +02:00
Lars Simon Winzer e07f107384 Fix: Incorrect order data was written out 2026-03-31 12:03:45 +02:00
Lars Simon Winzer c6ac3d4aff Add: Handle thrown Exceptions and respond with ErrorResponse 2026-03-30 19:38:39 +02:00
Lars Simon Winzer 059b706485 Chore: Move 'tokenizer' into protocol/parser section 2026-03-30 18:42:05 +02:00
Lars Simon Winzer b588f38cd5 Style: Apply Spotless 2026-03-30 18:27:17 +02:00
Lars Simon Winzer 86b4a6c191 Chore: Remove leftover TODO 2026-03-30 18:23:41 +02:00
Lars Simon Winzer 6e446b665a Chore: Move 'tokenizer' into protocol section 2026-03-30 18:21:56 +02:00
Lars Simon Winzer 442a846c71 Chore: Move 'response' into protocol section 2026-03-30 18:18:22 +02:00
Lars Simon Winzer e0b791589c Chore: Move 'request' folder into protocol section 2026-03-30 18:17:11 +02:00
Lars Simon Winzer cf0cd2666c Move ResponseDispatcher to 'dispatcher' subfolder in response section 2026-03-30 18:06:43 +02:00
Lars Simon Winzer ba6ff36ee2 Chore: Move ResponseBodyBuilder to 'builder' subfolder in response section 2026-03-30 18:00:34 +02:00
Lars Simon Winzer ed24ba7214 Chore: Move command parsing to 'parsing' subfolder in command section 2026-03-30 17:54:19 +02:00
Lars Simon Winzer 52daf4f2e0 Chore: Move CommandRouter and CommandHandler to execution subfolder in command section 2026-03-30 17:52:10 +02:00
Lars Simon Winzer 050b349638 Chore: Move ProtocolParser to 'protocol' folder for protocol-level processing 2026-03-30 17:50:30 +02:00
Lars Simon Winzer d4b5010158 Chore: Rename Parameter to RequestParameter 2026-03-30 17:45:08 +02:00
Lars Simon Winzer f9519a6eb5 Chore: Move RequestParameterAccessor and related files into subfolder of request 2026-03-30 17:43:31 +02:00
Lars Simon Winzer 8b8ac9ccc0 Chore: Move request related files into own folder 2026-03-30 17:41:55 +02:00
Lars Simon Winzer f467b2861f Style: Line length 2026-03-30 13:27:59 +02:00
Lars Simon Winzer 9390c3503a Style: Formatting by Spotless 2026-03-30 13:02:16 +02:00
Lars Simon Winzer d990e37a68 Add: parameterKey field to ParameterParseException (docstrings included) 2026-03-30 13:01:42 +02:00
Lars Simon Winzer e6b62726bd Docs: Add JavaDoc to all new interfaces, classes and methods
Co-authored-by: Copilot
2026-03-30 12:56:15 +02:00
Lars Simon Winzer 2feb0579e2 Add: RequestParameterAccessor as utility class for simplified access of parameters of PrimitiveRequest 2026-03-30 12:40:59 +02:00
Lars Simon Winzer 160ec55957 Add: ThrowingParser interface used to implicitly convert 2026-03-30 12:39:37 +02:00
Lars Simon Winzer ed91494129 Add: Exception to throw when error during parsing occurs 2026-03-30 12:38:44 +02:00
Lars Simon Winzer db9ea45530 Add: Exception to throw when required Parameter is not found 2026-03-30 12:06:52 +02:00
Lars Simon Winzer 1f4ccb1033 Docs: JavaDoc for Session 2026-03-28 13:12:43 +01:00
Lars Simon Winzer fc4a88ee95 Add: SessionDisconnectJob scheduling to ServerApp 2026-03-28 13:12:30 +01:00
Lars Simon Winzer 1547eda410 Add: SessionDisconnectJob to publish DisconnectEvent when client timeouts 2026-03-28 13:11:59 +01:00
Lars Simon Winzer c1cf6c1f83 Add: getAllSessions method to SessionManager 2026-03-28 13:01:43 +01:00
Lars Simon Winzer 8313a3b777 Add: lastActivity field to Session and update from SessionReader 2026-03-28 13:01:13 +01:00
Lars Simon Winzer 58d06fad39 Style: Line length in SessionManager 2026-03-26 18:10:32 +01:00
Lars Simon Winzer 8ed1bab067 Style: Put call to superclass constructor before variable assignment in UnknownRequestException constructor 2026-03-26 18:09:07 +01:00
Lars Simon Winzer a9ffb4daeb Style: Apply formatting by Spotless 2026-03-26 18:01:57 +01:00
Lars Simon Winzer 9a6ad9f1bb Add: Create CommandRouter at server startup and pass to SessionManager 2026-03-26 17:59:41 +01:00
Lars Simon Winzer 628e86a964 Add: Pass CommandRouter to Session and SessionReader 2026-03-26 17:58:25 +01:00