@Test void testGetTokenFromParam() { when(request.getParameter(TOKEN_PARAMETER)).thenReturn(TEST_TOKEN); assertEquals(TEST_TOKEN, getToken(request)); }
public static String getToken(HttpServletRequest request) { return getTokenInternal(request.getHeader(TOKEN_HEADER), request.getParameter(TOKEN_PARAMETER)); }
TokenExtractor implements HandlerMethodArgumentResolver { public static String getToken(HttpServletRequest request) { return getTokenInternal(request.getHeader(TOKEN_HEADER), request.getParameter(TOKEN_PARAMETER)); } }
TokenExtractor implements HandlerMethodArgumentResolver { public static String getToken(HttpServletRequest request) { return getTokenInternal(request.getHeader(TOKEN_HEADER), request.getParameter(TOKEN_PARAMETER)); }  }
TokenExtractor implements HandlerMethodArgumentResolver { public static String getToken(HttpServletRequest request) { return getTokenInternal(request.getHeader(TOKEN_HEADER), request.getParameter(TOKEN_PARAMETER)); }  static String getToken(HttpServletRequest request); @SuppressWarnings("java:S2259") // we use supportsParameter to check if the parameter is available @Override @Nullable @CheckForNull Object resolveArgument(
      MethodParameter parameter,
      @Nullable @CheckForNull ModelAndViewContainer mavContainer,
      NativeWebRequest webRequest,
      @Nullable @CheckForNull WebDataBinderFactory binderFactory); @Override boolean supportsParameter(MethodParameter parameter); }
TokenExtractor implements HandlerMethodArgumentResolver { public static String getToken(HttpServletRequest request) { return getTokenInternal(request.getHeader(TOKEN_HEADER), request.getParameter(TOKEN_PARAMETER)); }  static String getToken(HttpServletRequest request); @SuppressWarnings("java:S2259") // we use supportsParameter to check if the parameter is available @Override @Nullable @CheckForNull Object resolveArgument(
      MethodParameter parameter,
      @Nullable @CheckForNull ModelAndViewContainer mavContainer,
      NativeWebRequest webRequest,
      @Nullable @CheckForNull WebDataBinderFactory binderFactory); @Override boolean supportsParameter(MethodParameter parameter); static final String TOKEN_HEADER; static final String TOKEN_PARAMETER; }