cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 here!

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to customize port and protocol in dropbox SDK

Unable to customize port and protocol in dropbox SDK

Explorer | Level 4

I'm using Dropbox java sdk for uploading files from my service. it works fine!!!

In local I would like to mock the dropbox , instead want to connect to my wiremock server running on port 9001 with http protocal.

I'm using 'DbxClientV2' to make connection with dropbox and I don't see any configuration to change port. 

How can I acheive this?

3 Replies 3

Re: Unable to customize port and protocol in dropbox SDK

Dropboxer

The Dropbox Java SDK doesn't officially support changing the port or protocol (all calls have to be done over TLS so the port is always 443), but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

Re: Unable to customize port and protocol in dropbox SDK

Explorer | Level 4

Thanks for the reply.

It would be handy to have port configured, between could you propose an alternative solution for this situation. I don't want to call actual dropbox server for my localsetup.

 

Re: Unable to customize port and protocol in dropbox SDK

Dropboxer

The closest thing the Java SDK offers is the ability to set custom hosts via a DbxHost, using this DbxClientV2 constructor. I don't have any sample code for that. I don't believe it would let you change the protocol or port though.

Polls
Are you starting new work habits this year?

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?