You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (Jira)" <ji...@apache.org> on 2020/03/19 14:09:00 UTC

[jira] [Comment Edited] (TIKA-3073) Add compression options to /rmeta output

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

Tim Allison edited comment on TIKA-3073 at 3/19/20, 2:08 PM:
-------------------------------------------------------------

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

{noformat}
            //set compression interceptors
            sf.setOutInterceptors(
                    Collections.singletonList(new GZIPOutInterceptor())
            );
            sf.setInInterceptors(
                    Collections.singletonList(new GZIPInInterceptor()));
{noformat}



was (Author: tallison@mitre.org):
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 options 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)