Code example for HttpUriRequest

Methods: getMethod

0
			retry = true;
		} else { 
			// resend all idempotent requests 
			HttpUriRequest currentReq = (HttpUriRequest) context
					.getAttribute(ExecutionContext.HTTP_REQUEST);
			String requestType = currentReq.getMethod();
			if (!requestType.equals("POST")) {
				retry = true;
			} else { 
				retry = false;
			} 
		} 
 
		if (retry) {
			SystemClock.sleep(RETRY_SLEEP_TIME_MILLIS);
		} 
		return retry;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE