Add CommandParserDispatcher to dispatch PrimitiveRequest to matching CommandParser #188
+11
@@ -0,0 +1,11 @@
|
|||||||
|
package ch.unibas.dmi.dbis.cs108.casono.server.network.parser;
|
||||||
|
|
||||||
|
/** Parser to convert the PrimitiveRequest to a Request and performing checks for required fields and data types */
|
||||||
|
public interface CommandParser {
|
||||||
|
/**
|
||||||
|
* Parses the provided PrimitiveRequest into a command-specific request
|
||||||
|
* @param primitiveRequest
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Request parse(PrimitiveRequest primitiveRequest);
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
package ch.unibas.dmi.dbis.cs108.casono.server.network.parser;
|
||||||
|
|
||||||
|
/** Request, produced by the CommandParser */
|
||||||
|
public interface Request {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user