H
H
Hitory2012-03-23 16:03:11
Java
Hitory, 2012-03-23 16:03:11

Using Session.ProxyInfo class in dropbox java api?

Good day!
The task arose to write a desktop application for the university that could synchronize files through the built-in plugin using the dropbox api.
The problem is that the department uses a proxy to access the internet.
The api has a com.dropbox.client2.session.Session.ProxyInfo class, which is a static final class and has, respectively, only get methods.
How to set proxy settings for it?
Has anyone had a similar issue? Perhaps there are other ways to solve, using directly oauth to create a session?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
1
1nd1go, 2012-03-23
@1nd1go

I feel that in the constructor:public Session.ProxyInfo(java.lang.String host, int port)

A
asm0dey, 2012-03-23
@asm0dey

Well, at worst, reflection solves all problems of this kind.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question