You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2015/09/10 14:02:45 UTC

[jira] [Commented] (CMIS-947) Ease setting of GetContentStream custom HTTP Response Headers

    [ https://issues.apache.org/jira/browse/CMIS-947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738626#comment-14738626 ] 

Florian Müller commented on CMIS-947:
-------------------------------------

In {{getContentStream()}} you can do this to set an additional response header:

{code}
HttpServletResponse resp = (HttpServletResponse) getCallContext().get(CallContext.HTTP_SERVLET_RESPONSE);
resp.setHeader("Content-MD5", "...");
{code}

> Ease setting of GetContentStream custom HTTP Response Headers
> -------------------------------------------------------------
>
>                 Key: CMIS-947
>                 URL: https://issues.apache.org/jira/browse/CMIS-947
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 0.13.0
>            Reporter: Ron Gavlin
>            Priority: Minor
>
> I would like to add an HTTP/1.1-standard Content-MD5 header to my Browser Binding GetContentStream operation response. Currently, this appears to require overrides of both the CMISBrowserBindingServlet and the ObjectService.GetContentStream classes. This is a lot of work to support an HTTP/1.1-standard feature. Instead, method AbstractServiceCall.sendContentStreamHeaders() should be easier to directly override.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)