chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <>
Subject [jira] [Commented] (CMIS-947) Ease setting of GetContentStream custom HTTP Response Headers
Date Thu, 10 Sep 2015 12:02:45 GMT


Florian Müller commented on CMIS-947:

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

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

> Ease setting of GetContentStream custom HTTP Response Headers
> -------------------------------------------------------------
>                 Key: CMIS-947
>                 URL:
>             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

View raw message