Class DeleteParamsResolver

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

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

    • DeleteParamsResolver

      public DeleteParamsResolver()
  • Method Details

    • getAnnotation

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

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