You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/10/05 13:22:03 UTC
[jira] [Created] (WICKET-4804) Add #setStatus(int) in
AbstractResource.ResourceResponse
Martin Grigorov created WICKET-4804:
---------------------------------------
Summary: Add #setStatus(int) in AbstractResource.ResourceResponse
Key: WICKET-4804
URL: https://issues.apache.org/jira/browse/WICKET-4804
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 6.1.0, 1.5.8
Reporter: Martin Grigorov
Assignee: Martin Grigorov
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).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-4804) Add #setStatus(int) in
AbstractResource.ResourceResponse
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4804.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.9
6.2.0
> Add #setStatus(int) in AbstractResource.ResourceResponse
> --------------------------------------------------------
>
> Key: WICKET-4804
> URL: https://issues.apache.org/jira/browse/WICKET-4804
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.8, 6.1.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 6.2.0, 1.5.9
>
>
> 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).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira