[ http://mc4j.org/jira/browse/STS-237?page=all ]

Tim Fennell resolved STS-237.
-----------------------------

    Resolution: Fixed

Done.

> Make StreamingResolution easier to subclass
> -------------------------------------------
>
>                 Key: STS-237
>                 URL: http://mc4j.org/jira/browse/STS-237
>             Project: Stripes
>          Issue Type: Improvement
>          Components: ActionBean Dispatching
>            Reporter: Tim Fennell
>         Assigned To: Tim Fennell
>             Fix For: Release 1.4
>
>
> Since StreamingResolution has the logic in it to set the content type, 
> encoding and filename (in the case of streaming downloads) it would be nice 
> to make it easier to subclass so that if you don't have a handy input stream 
> you should be able to do:
> StreamingResolution res = new StreamingResolution(contentType) {
>     public void stream(OutputStream out) throws IOException {
>         // custom code here to write out the contents of the stream;
>     }
> };
> return res.setFilename("your-download.txt");

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

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to