HttpRequestHandler in Arcgis SDK Android 100.X ?

238
0
01-27-2020 04:21 AM
ClémentLaskar
New Contributor III

Hello,

Il have a service that is exposed to external requests with the adress https://proxy/ulr/prefix/arcgis/rest/... It works well to access it and I can display my maps on my mobile app.

When I try to generate a geodatabase to get for offline use though, my server sends the official url for him on where to get the geodatabase. He gives me an url like http://my/server/name:6080/arcgis/rest/... . Because this url is not accessible, I cannot get my offline map. So when the request is sent from my mobile to the server, I would like to replace the url my/server/name with proxy/url/prefix so the access is granted.

I saw on the .net SDK that the event ArcGISHttpClientHandler.HttpRequestBegin Event can be used. In the Android SDK v.10.2.7, it's also available as mentioned in Setting up HttpRequestConfiguration to ArcGIS Android SDK for security . In the Android SDK 100.7, I only found RequestConfiguration (ArcGIS Runtime SDK for Android 100.7.0)  that I can use to set headers, but not in order to manipulate the request url. 

Has anyone an idea on why this class is not implemented in the Android SDK and how I can modify my url ?

Thanks !

0 Kudos
0 Replies