jax-rs-spec
  1. jax-rs-spec
  2. JAX_RS_SPEC-146

Provide the ability to override specific filters that are globally bound

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently one can specify Filters with @GlobalBinding and by default some environments may choose to install such GlobalFilters (e.g AuthenticationFilter) - However, individual resources should be able to override such Global filters, if they choose to. This is a common use case I've seen and is something that we internally in eBay. It will be good to provide this ability in a standard way in the spec.

        Activity

        Hide
        Marek Potociar added a comment -

        The new filtering proposal changes quite a lot of things which makes me believe the issue does not apply anymore:

        All unbound (global) filters are pre-matching. The other filters are post-matching and can be either name-bound using the binding annotation or dynamically bound via DynamicBinder interface, which is the facility that should resolve this issue.

        Show
        Marek Potociar added a comment - The new filtering proposal changes quite a lot of things which makes me believe the issue does not apply anymore: All unbound (global) filters are pre-matching. The other filters are post-matching and can be either name-bound using the binding annotation or dynamically bound via DynamicBinder interface, which is the facility that should resolve this issue.

          People

          • Assignee:
            Marek Potociar
            Reporter:
            m_sastry
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: