Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1498

JAX-RS: Servlet Resources Injection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1
    • JAX-RS
    • None

    Description

      From the 0.6 specs for JAX-RS, in section 5.1:
      "The javax.annotation.Resource annotation can be used to indicate a dependency on a Servlet-defined resource. An implementation MUST support injection of the following types: ServletConfig, ServletContext, HttpServletRequest and HttpServletResponse."

      This is currently missing from the current 2.1-incubator version.

      I'll attach to this ticket a patch that adds support for ServletContext, HttpServletRequest and HttpServletResponse (written with the help of Sergey ).

      Attachments

        1. patch-diff.txt
          11 kB
          Mickael Goujon

        Activity

          People

            dkulp Daniel Kulp
            goujon Mickael Goujon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: