Class GetParamsResolver

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

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

    • GetParamsResolver

      public GetParamsResolver()
  • Method Details

    • getAnnotation

      public Class<? extends Annotation> getAnnotation()
      Retrieves the @GetMapping annotation class.
      Specified by:
      getAnnotation in interface RequestParamsResolver
      Returns:
      The @GetMapping annotation class.
    • handleAnnotation

      public void handleAnnotation(Object instance, Method method, String requestMappingPath, Map<String,List<RestControllerParams>> restControllerParamsMap)
      Handles the @GetMapping 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 @GetMapping annotation.
      requestMappingPath - The request mapping path.
      restControllerParamsMap - A map containing controller paths and associated parameters.