Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4804

Add #setStatus(int) in AbstractResource.ResourceResponse

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.8, 6.1.0
    • Fix Version/s: 6.2.0, 1.5.9
    • Component/s: wicket
    • Labels:
      None

      Description

      org.apache.wicket.request.resource.AbstractResource.ResourceResponse provides #setError(int code, String message) but doesn't provide #setStatus(int code).

      This makes it hard to set custom headers (e.g. cache control) and set status 304 because if HttpServletResponse#setErrorCode() is used then many headers are reset (including the cache control ones).

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              mgrigorov Martin Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: