Package com.bobocode.bring.web.utils
Class RestControllerParamsUtil
java.lang.Object
com.bobocode.bring.web.utils.RestControllerParamsUtil
The
RestControllerParamsUtil class is a utility class providing methods for extracting
RestControllerParams information from a BringServlet using a list of
RequestParamsResolvers.- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String, List<RestControllerParams>> getRestControllerParams(BringServlet bringServlet, List<RequestParamsResolver> requestParamsResolvers) Retrieves the mapping of controller methods to their associatedRestControllerParams.
-
Constructor Details
-
RestControllerParamsUtil
public RestControllerParamsUtil()
-
-
Method Details
-
getRestControllerParams
public static Map<String,List<RestControllerParams>> getRestControllerParams(BringServlet bringServlet, List<RequestParamsResolver> requestParamsResolvers) Retrieves the mapping of controller methods to their associatedRestControllerParams.- Parameters:
bringServlet- The instance of theBringServletcontaining the controller methods.requestParamsResolvers- The list ofRequestParamsResolvers used for method annotation handling.- Returns:
- A map where keys are HTTP method names and values are lists of
RestControllerParams.
-