Class HttpParamMethodControllerParameterAnnotationApplier

java.lang.Object
com.chillycheesy.modulo.controllers.methodcontroller.HttpParamMethodControllerParameterAnnotationApplier
All Implemented Interfaces:
MethodControllerParameterAnnotationApplier

public class HttpParamMethodControllerParameterAnnotationApplier extends Object implements MethodControllerParameterAnnotationApplier
Apply the HttpParam decorator.
  • Constructor Details

    • HttpParamMethodControllerParameterAnnotationApplier

      public HttpParamMethodControllerParameterAnnotationApplier()
  • Method Details

    • apply

      public Object apply(Annotation annotation, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration, Object instance, Method method, Parameter parameter, Object currentArgument)
      Apply the annotation to the parameter and return the argument to pass to the method.
      Specified by:
      apply in interface MethodControllerParameterAnnotationApplier
      Parameters:
      annotation - The annotation to apply.
      request - The http request.
      response - The httpResponse.
      configuration - The current configuration.
      instance - The method instance.
      method - The method of the parameter.
      parameter - The method parameter.
      currentArgument - The current returned argument value.
      Returns:
      The argument to pass to the method.
    • match

      public boolean match(Annotation annotation)
      Check if the annotation is supported by this applier.
      Specified by:
      match in interface MethodControllerParameterAnnotationApplier
      Parameters:
      annotation - The annotation to apply.
      Returns:
      True if the annotation is supported by this applier.