Skip to content

[Java] How to add gzip filter to com.sun.jersey.api.client.Client #3279

@jfiala

Description

@jfiala
Description

I want to add the GZIPContentEncodingFilter to Jersey-Client in the generated ApiClient class.
However, there currently seems no way to access the com.sun.jersey.api.client.Client:
The method to access the Jersey-Client is private:
private Client getClient()

Pls advise on how to add gzip encoding to the generated ApiClient?

Related issues

#2539

Suggest a Fix

It would be great if the getClient method is protected, so it is possible to access the Client to add filters etc.

Currently there seems no workaround but to copy the whole ApiClient.java class and rewrite the getClient method ourselves ...

Thank you & Best regards,
Johannes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions