|
Eile Mit Weile
|
single method to handle all incoming ClientRequests. More...
#include <RequestHandler.hpp>
Static Public Member Functions | |
| static RequestResponse * | handle_request (const ClientRequest *const req) |
single method to handle all incoming ClientRequests.
Note: This class design is taken from https://gitlab.ethz.ch/hraymond/cse-lama-example-project. They made the choice to have all members be static, which is why this class is a singleton and should not be instantiated. This means that all classes that reference this class do not have to instantiate it, notably the ServerNetworkManager. We consider this bad practice but changing would require a lot of refactoring so we decided to keep it as is.
|
static |
Handles an incoming ClientRequest. Determines type of request and returns the approproate RequestResponse.