Details

      Description

      Resource serving can provide an HTTP response status with the ResourceResponse.HTTP_STATUS_CODE property. Adding a setStatus (like in javax.servlet.http.HttpServletResponse) method on the ResourceResponse that would simply delegate to the status code property would be more explicit and developer friendly, instead of:

      response.addProperty(ResourceResponse.HTTP_STATUS_CODE, "404");

      we would have:

      response.setStatus404);

        Issue Links

          Activity

          Hide
          msnicklous added a comment -

          I agree that we should add this helper method.

          Show
          msnicklous added a comment - I agree that we should add this helper method.
          Hide
          msnicklous added a comment -
          Show
          msnicklous added a comment - Added method ResourceResponse.setStatus(int sc)

            People

            • Assignee:
              msnicklous
              Reporter:
              julien_viet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: