title: How can I extract request attributes from Jersey's ContainerRequest?
body: <p><code>HttpServletRequest</code> has a method <code>setAttribute(String, Object)</code>.</p>
  
  <p>How can I extract this attribute from <code>ContainterRequest</code>?</p>
  
  <p>I didn't find: <code>getAttribute</code> method!</p>
  
  <p>Code</p>
  
  <pre><code>public class AuthenticationFilter implements Filter {
      public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain) throws IOException, ServletException {
          HttpServletRequest httpReq = (HttpServletRequest) servletRequest;
          // .... ....
          httpReq.setAttribute("businessId", businessId);
      }
  }
  </code></pre>
  
  <p>In Jersey Filter:</p>
  
  <pre><code>private class Filter implements ResourceFilter, ContainerRequestFilter {
      public ContainerRequest filter(ContainerRequest request) {
          // ..extract the attribute from the httpReq
      }
  }
  </code></pre>