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
RequestParamsResolver
s.- 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 theBringServlet
containing the controller methods.requestParamsResolvers
- The list ofRequestParamsResolver
s used for method annotation handling.- Returns:
- A map where keys are HTTP method names and values are lists of
RestControllerParams
.
-