Use of a class Session.ProxyInfo dropbox java api?

Good day!

The problem arose to write for the University desktop app that could sync files via the built-in plugin that using dropbox api.

The problem is to use the Department proxy to access the internet.

In the API there is a class com.dropbox.client2.session.Session.ProxyInfo, which is a static final class, and has, accordingly, only get-methods.

How to set his proxy settings?

Did someone have similar problem? Perhaps there are other solutions, and use oauth directly to create a session?
October 8th 19 at 01:31
2 answers
October 8th 19 at 01:33
I feel that in the constructor: public Session.ProxyInfo(java.lang.String host, int port)
So it is true...
But the following piece of code does not understand how you can call it...
KeyPair AppKeyPair = new AppKeyPair(APP_KEY, APP_SECRET);<br> WebAuthSession session = new WebAuthSession(keyPair, ACCESS_TYPE);<br> syncAPI = new DropboxAPI(session);<br> <br / > moreover, the session variable has only a getter on the proxy info... - barton_Jakubows commented on October 8th 19 at 01:36
October 8th 19 at 01:35
Well, at worst, a reflection of all tasks of this kind are resolved.

Find more questions by tags DropboxOAuthAPIJava