Add ProtocolParser to parse RawPacket into PrimitiveRequest using the Tokenizer #187

Merged
lars.winzer merged 6 commits from feat/protocol-parser into main 2026-03-15 16:19:05 +01:00
2 changed files with 10 additions and 0 deletions
Showing only changes of commit 9c3f62db24 - Show all commits
@@ -0,0 +1,4 @@
package ch.unibas.dmi.dbis.cs108.casono.server.network.parser;
/** Used in the PrimitiveRequest class to store the key of a parameter with its respective value */
public record Parameter(String key, String value) {}
@@ -0,0 +1,6 @@
package ch.unibas.dmi.dbis.cs108.casono.server.network.parser;
import java.util.List;
/** Created by the ProtocolParser to allow easy access to the request contents */
public record PrimitiveRequest(String command, List<Parameter> parameters) {}