@Override public void init(FilterConfig filterConfig) throws ServletException { provider = OAuthUtils.initiateServletContext( filterConfig.getServletContext(), OAUTH_RS_PROVIDER_CLASS, OAuth2RSProvider.class); super.init(filterConfig); }
@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { provider.setServletResponse((HttpServletResponse) response); super.doFilter(request, response, chain); }