Detect Content-Type automatically in ResourceStreamRequestTarget
----------------------------------------------------------------

                 Key: WICKET-356
                 URL: https://issues.apache.org/jira/browse/WICKET-356
             Project: Wicket
          Issue Type: Bug
          Components: wicket
            Reporter: Jean-Baptiste Quenot
         Assigned To: Jean-Baptiste Quenot
         Attachments: 20070302-wicket-1.x-ResourceStreamRequestTarget-configure

Currently ResourceStreamRequestTarget sets the response Content-Type by getting 
the value from the IResourceStream, or from the ResourceStreamRequestTarget 
itself, with a value passed in the constructor.

I propose to remove the deprecated responseType field, remove the deprecated 
ResourceStreamRequestTarget(IResourceStream, String) constructor and let the 
configure() method determine the Content-Type automatically.  As a result, 
IResourceStream instances can return null in getContentType().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to