Create utility class to provide easy access to List of Parameters #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request
Summary
Utility class to provide easy access via methods to list of parameters wrapped in
PrimitiveRequest, used in each implementation of theCommandParser.Required workarround
Each implementation of the CommandParser needs to repeatedly:
If one of both conditions aren't met, the processing must be aborted and the client must be informed.
Description
Special
RequestParameterAccessorclass taking the list of parameters during instantiation.This class should provide methods to get a value based on its key. A default value can be provided to be returned when no parameter is found.
Another overloaded variant could allow to provide a function (e.g.
Integer::fromString) to implicitly convert to the desired type.Checklist
I reproduced the problem using the steps aboveI searched documentation docs for relevant informationassigned to @lars.winzer
created branch
feat/21-requestparameteraccessorto address this issueadded 20m of time spent at 2026-03-30 12:00:00 +0200
added 1h of time spent at 2026-03-30 12:00:00 +0200
mentioned in merge request !52
created branch
chore/21-fix-styleto address this issuementioned in merge request !53
Used https://git.scicore.unibas.ch/cs108-fs26/Gruppe-13/-/merge_requests/53 to fix line length formatting violations introduced in https://git.scicore.unibas.ch/cs108-fs26/Gruppe-13/-/merge_requests/52