Class ParamResolverFactories

java.lang.Object
se.fortnox.reactivewizard.jaxrs.params.ParamResolverFactories

public class ParamResolverFactories extends Object
Creates param resolvers which can resolve method parameters from an incoming request.
  • Constructor Details

  • Method Details

    • createParamResolvers

      public List<ParamResolver> createParamResolvers(Method method, String[] consumesAnnotation)
      Create param resolvers.
      Parameters:
      method - the method
      consumesAnnotation - the consumes requirements
      Returns:
      the param resolvers
    • createParamResolver

      protected <T> ParamResolver<T> createParamResolver(Parameter parameter, com.fasterxml.jackson.core.type.TypeReference<T> paramType, List<Annotation> parameterAnnotations, String[] consumesAnnotation)
    • findDefaultValue

      public static String findDefaultValue(List<Annotation> parameterAnnotations)
      Find the value of the DefaultValue annotation.
      Parameters:
      parameterAnnotations - the annotations
      Returns:
      default value or null if not found
    • findDefaultValueAnnotation

      public static javax.ws.rs.DefaultValue findDefaultValueAnnotation(List<Annotation> parameterAnnotations)
      Find the DefaultValue annotation.
      Parameters:
      parameterAnnotations - the annotations
      Returns:
      default value annotation or null if not found