Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-1181

Make ScopedServletUtils provide an alternative to getting the ScopedResponse via caching mechanism

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0, 1.0.1, 1.0.2
    • V.Next
    • NetUI
    • None

    Description

      Currently, the ScopedServletUtils.getScopedResponse() routine caches the new ScopedResponse result of the first call in the outer request. Then on any subsequent calls it just returns the cached ScopedResponse from the outer request.

      In some cases there may be multiple calls to getScopedResponse() for a particular scope and a need to pass in a different real Response parameter. However, in these cases the returned ScopedResonse in the subsequent calls will be the cached one which was created in the first call to getScopedResponse() and wraps a different real Response. A modification to ScopedServletUtils could allow one to get a new ScopedResonse instance that wraps the different real Response rather than the cached ScopedResonse.

      Could add a new method to ScopedServletUtils, such as updateScopedResponse(), that would allow callers to get the new ScopedResponse instance. The method would also replace the cached ScopedResponse on the outer request with the new ScopedResponse.

      Attachments

        Activity

          People

            crogers Howard Carlin Rogers
            crogers Howard Carlin Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: