jersey
  1. jersey
  2. JERSEY-1617

Support outbound entity buffering to compute Content-Length value.

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-m13, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      DEMO: Uncomment code that tests content-length values in tests (core-server:HeadTest, e2e:ContentLengthTest).

      With MBW.getSize() ignored in JAX-RS 2.0, we may want to implement a way that would let us compute the Content-Length value for messages of up to certain size. We could do this by defining a configurable-size buffer for outbound entities that would try to buffer whole entity and compute the actual Content-Length value that would be then set in the headers before flushing the buffered entity. Should the buffer overrun, it would resume to serializing the entity without computing the C-L value.

      add client side request tests

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 12 hours Original Estimate - 12 hours
                12h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 21 hours
                1d 21h