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

Add #setStatus(int) in AbstractResource.ResourceResponse

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.8, 6.1.0
    • 6.2.0, 1.5.9
    • wicket
    • 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

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: