Skip to content

Allow to modify the underlying okHttpClient from the BoxDeveloperEditionAPIConnection when using factory method #1271

Description

@davigotxi

The BoxApiConnection class has a protected method modifyHttpClientBuilder that allows to modify the underlying okHttpClient by overriding the method from a subclass. This is useful for a variety of reasons (i.e. on our particular case to add some logging interceptors to debug what is going on at different stages of an http request).

When trying to extend the BoxDeveloperEditionAPIConnection subclass to preserve behavior we want to use one of the getAppEnterpriseConnection methods that internally using a private method tryRestoreUsingAccessTokenCache. However we cannot call this method unless using reflection.

A nicer solution would be to have that method as public or protected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementAdded to issues that describes enhancements

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions