[
http://opencast.jira.com/browse/MH-9154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31846#comment-31846
]
Rubén Pérez Vázquez edited comment on MH-9154 at 9/27/12 10:10 AM:
-------------------------------------------------------------------
Sorry for the frankness but I have some strong opinions about this:
I wonder why all that fuss using streams and adaptors and who-knows-what when
all you want is sending a file as the body of the message:
Response.ok(theFile).header("Content-Length", theFile.length()); Unless, of
course, you want to rewrite the functionality that Jersey already provides.
On the other hand, the sintax: return method().method2().method3(param1, new
param2 { inline_method_definition { return inline_method_definition2 { return
something } }) --or something like that, I got lost in the middle--, does not
exactly help to make the code maintainable. Last time I checked, Java was NOT a
functional language.
EDIT: Answering to Tobias' concerns about "negative lenghts": if some service
is writing a negative content-length, it's not about avoiding it to do so, but
about correcting the way in which that service is calculating such length.
There are not negative lenghts, so if some services tries to write one, that
means the method it is using to calculate such length is wrong, and that's what
needs to be fixed.
was (Author: ruben.perez):
Sorry for the frankness but I have some strong opinions about this:
I wonder why all that fuss using streams and adaptors and who-knows-what when
all you want is sending a file as the body of the message:
Response.ok(theFile).header("Content-Length", theFile.length()); Unless, of
course, you want to rewrite the functionality that Jersey already provides.
On the other hand, the sintax: return method().method2().method3(param1, new
param2 { inline_method_definition { return inline_method_definition2 { return
something } }) --or something like that, I got lost in the middle--, does not
exactly help to make the code maintainable. Last time I checked, Java was NOT a
functional language.
> Edit link does not work on Episode tab
> --------------------------------------
>
> Key: MH-9154
> URL: http://opencast.jira.com/browse/MH-9154
> Project: Matterhorn Project
> Issue Type: Bug
> Components: Architecture & Services
> Affects Versions: 1.4
> Reporter: Tobias Wunden
> Assignee: Lukas Rohner
> Priority: Release Blocker
> Fix For: 1.4
>
> Attachments: MH-9154.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://opencast.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________