Class PostParamsResolver
java.lang.Object
com.bobocode.bring.web.servlet.mapping.request.PostParamsResolver
- All Implemented Interfaces:
RequestParamsResolver
The PostParamsResolver class implements the RequestParamsResolver interface
to handle the @PostMapping annotation.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends Annotation> Retrieves the @PostMapping annotation class.void
handleAnnotation
(Object instance, Method method, String requestMappingPath, Map<String, List<RestControllerParams>> restControllerParamsMap) Handles the @PostMapping annotation on a method and processes the associated parameters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.bobocode.bring.web.servlet.mapping.request.RequestParamsResolver
addSorted, getMethodPath
-
Constructor Details
-
PostParamsResolver
public PostParamsResolver()
-
-
Method Details
-
getAnnotation
Retrieves the @PostMapping annotation class.- Specified by:
getAnnotation
in interfaceRequestParamsResolver
- Returns:
- The @PostMapping annotation class.
-
handleAnnotation
public void handleAnnotation(Object instance, Method method, String requestMappingPath, Map<String, List<RestControllerParams>> restControllerParamsMap) Handles the @PostMapping annotation on a method and processes the associated parameters.- Specified by:
handleAnnotation
in interfaceRequestParamsResolver
- Parameters:
instance
- The instance of the controller.method
- The method with the @PostMapping annotation.requestMappingPath
- The request mapping path.restControllerParamsMap
- A map containing controller paths and associated parameters.
-