Better way to handle common headers and root? <p>Is there a better way to set bearer like a global config rather than setting it each time like this:</p> <pre><code>restClient.setBearerAuth(TokenStore.getInstance().getLocalToken()); </code></pre> <p>The same for root url, is there a global config rather than setting it like this:</p> <pre><code>String root= Application.getInstance().getApplicationContext().getResources().getString(R.string.whiteLabelApiBaseHost) restClient.setRootUrl(root); </code></pre> <p>In retrofit, there is something like this:</p> <pre><code>Retrofit retrofit = new Retrofit.Builder() .baseUrl(Application.getInstance().getApplicationContext() .getResources().getString(R.string.whiteLabelApiBaseHost)) </code></pre> <p>Any idea?</p>