@ Override public void get ( String path , HttpResponseCallback callback ) { if ( path == null ) { postCallbackOnMainThread ( callback , new IllegalArgumentException ( "Path cannot be null" ) ) ; return ; } Uri uri ; if ( path . startsWith ( "http" ) ) { uri = Uri . parse ( path ) ; } else { uri = Uri . parse ( mBaseUrl + path ) ; } if ( mAuthorization instanceof ClientToken ) { uri = uri . buildUpon ( ) . appendQueryParameter ( AUTHORIZATION_FINGERPRINT_KEY , ( ( ClientToken ) mAuthorization ) . getAuthorizationFingerprint ( ) ) . build ( ) ; } super . get ( uri . toString ( ) , callback ) ; }
Make a HTTP GET request to Braintree using the base url path and authorization provided . If the path is a full url it will be used instead of the previously provided url .