[jira] [Commented] (TIKA-3073) Add compression option to /rmeta output

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (TIKA-3073) Add compression option to /rmeta output

Chris Mattmann (Jira)

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

Tim Allison commented on TIKA-3073:
-----------------------------------

Thank you, [~grossws]!  That gave me the right words to google to the answer...turns out cxf handles this elegantly:

{noformat}
            //set compression interceptors
            List<Interceptor<?extends Message>> outInterceptors = new ArrayList<>();
            outInterceptors.add(new GZIPOutInterceptor());
            sf.setOutInterceptors(outInterceptors);

            List<Interceptor<?extends Message>> inInterceptors = new ArrayList<>();
            inInterceptors.add(new GZIPInInterceptor());
            sf.setInInterceptors(inInterceptors);
{noformat}


> Add compression option to /rmeta output
> ---------------------------------------
>
>                 Key: TIKA-3073
>                 URL: https://issues.apache.org/jira/browse/TIKA-3073
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Major
>
> On TIKA-3069, [~carina.antunes] requested compressing /rmeta output. This makes sense as a start...we might also look into allowing more configurability around which metadata fields and file types to send back over the wire.  Few people need everything...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)