Skip to main content

[JIRA] Created: (PORTLETSPEC3-28) Add setStatus method on ResourceResponse

  • From: "julien_viet (JIRA)" < >
  • To:
  • Subject: [JIRA] Created: (PORTLETSPEC3-28) Add setStatus method on ResourceResponse
  • Date: Tue, 21 May 2013 21:44:04 +0000 (UTC)
  • Auto-submitted: auto-generated

Add setStatus method on ResourceResponse
----------------------------------------

                 Key: PORTLETSPEC3-28
                 URL: https://java.net/jira/browse/PORTLETSPEC3-28
             Project: portletspec3
          Issue Type: Improvement
          Components: Ideas for JSR 362 Extensions
            Reporter: julien_viet
            Priority: Minor


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);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (PORTLETSPEC3-28) Add setStatus method on ResourceResponse

julien_viet (JIRA) 05/21/2013
 
 
Close
loading
Please Confirm
Close