Class PostParamsResolver

java.lang.Object
com.bobocode.bring.web.servlet.mapping.request.PostParamsResolver
All Implemented Interfaces:
RequestParamsResolver

public class PostParamsResolver extends Object implements RequestParamsResolver
The PostParamsResolver class implements the RequestParamsResolver interface to handle the @PostMapping annotation.
Since:
1.0
Author:
Blyzhnytsia Team
See Also:
  • Constructor Details

    • PostParamsResolver

      public PostParamsResolver()
  • Method Details

    • getAnnotation

      public Class<? extends Annotation> getAnnotation()
      Retrieves the @PostMapping annotation class.
      Specified by:
      getAnnotation in interface RequestParamsResolver
      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 interface RequestParamsResolver
      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.