Hi,
I am playing with you class & you might not defnitly play with proxy, username, passwords, & others authentication scenarios. Instead of that you should accept a requestOptions parameter in the constructor, allowing the caller to set request options independently/whatever the login scenario to be added (the same for username/password)
For example, by that way, the caller can add extra header request parameters like proxy authentication or whatever.
As example of code from the caller (here the last parameter is the options map you give @ the request method. In that example, I connect to an authenticated proxy & sigin also in jira:
Next you will have to concatenate/transfer that map into your own options
This will really make your class more opened, extensible & easier to maintain on that point for you.
Best regards
Louis
Hi, I am playing with you class & you might not defnitly play with proxy, username, passwords, & others authentication scenarios. Instead of that you should accept a requestOptions parameter in the constructor, allowing the caller to set request options independently/whatever the login scenario to be added (the same for username/password)
For example, by that way, the caller can add extra header request parameters like proxy authentication or whatever.
As example of code from the caller (here the last parameter is the options map you give @ the request method. In that example, I connect to an authenticated proxy & sigin also in jira:
Next you will have to concatenate/transfer that map into your own options This will really make your class more opened, extensible & easier to maintain on that point for you. Best regards Louis