protected void configure(final HttpRequest request) {
		request.getHeaders().setAuthorization(String.format("OAuth %s", token));
		request.setParser(new JsonObjectParser(jsonFactory));

		final ExponentialBackOff backoff = new ExponentialBackOff.Builder().setInitialIntervalMillis(500)
				.setMaxElapsedTimeMillis(60000).setMaxIntervalMillis(30000).setMultiplier(1.5)
				.setRandomizationFactor(0.5).build();
		request.setUnsuccessfulResponseHandler(new HttpBackOffUnsuccessfulResponseHandler(backoff));
	}
protected void configure(final HttpRequest request) {
		request.getHeaders().setAuthorization(String.format("OAuth %s", token));
		request.setParser(new JsonObjectParser(jsonFactory));

		final ExponentialBackOff backoff = new ExponentialBackOff.Builder().setInitialIntervalMillis(500)
				.setMaxElapsedTimeMillis(60000).setMaxIntervalMillis(30000).setMultiplier(1.5)
				.setRandomizationFactor(0.5).build();
		request.setUnsuccessfulResponseHandler(new HttpBackOffUnsuccessfulResponseHandler(backoff));
	}
protected void configure ( final HttpRequest request ) { request . getHeaders ( ) . setAuthorization ( String . format ( "OAuth %s" , token ) ) ; request . setParser ( new JsonObjectParser ( jsonFactory ) ) ; final ExponentialBackOff backoff = new ExponentialBackOff . Builder ( ) . setInitialIntervalMillis ( 500 ) . setMaxElapsedTimeMillis ( 60000 ) . setMaxIntervalMillis ( 30000 ) . setMultiplier ( 1.5 ) . setRandomizationFactor ( 0.5 ) . build ( ) ; request . setUnsuccessfulResponseHandler ( new HttpBackOffUnsuccessfulResponseHandler ( backoff ) ) ; }
Configures each request. This does 3 things:
<ul>
<li>Adds the authorization token to each request</li>
<li>Adds the JSON factory to the request</li>
<li>Adds exponential back off capability</li>
</ul>

@param request
is the request to configure
Configures each request . This does 3 things : <ul > <li > Adds the authorization token to each request< / li > <li > Adds the JSON factory to the request< / li > <li > Adds exponential back off capability< / li > < / ul >