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

Subclasses of RequestDispatcherProvider cannot add request parameters because RequestDispatcherProvider.HttpServletRequestFilter has private access

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3, 2.2.11
    • 2.2.12, 2.3.1, 2.4
    • JAX-RS
    • None

    Description

      After processing a JAXRS call I need to redirect the user to a page + I also need to add a request parameter.

      I wanted to subclass RequestDispatcherProvider and override either RequestDispatcherProvider#doSetRequestParameters or RequestDispatcherProvider#setRequestParameters which have protected access to achieve this. Is this correct or should I use some other method?

      But this is not possieble because both methods require parameters of type RequestDispatcherProvider.HttpServletRequestFilter which has private access in RequestDispatcherProvider.

      Is there any reason for RequestDispatcherProvider.HttpServletRequestFilter being private?

      Can you change the access modifier of RequestDispatcherProvider.HttpServletRequestFilter please? Or should I use some other method to add a request parameter?

      Thank you.

      /Martin

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            ytoh Martin Hvizdos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: