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

          julien_viet created issue -
          Neil Griffin made changes -
          Field Original Value New Value
          Link This issue is related to PORTLETSPEC3-26 [ PORTLETSPEC3-26 ]
          msnicklous made changes -
          Assignee msnicklous [ msnicklous ]
          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)
          msnicklous made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          msnicklous added a comment -

          done.

          Show
          msnicklous added a comment - done.
          msnicklous made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: