Java Code Examples for play.libs.ws.WSRequest#setRequestTimeout()
The following examples show how to use
play.libs.ws.WSRequest#setRequestTimeout() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WsRequestBuilder.java From remote-monitoring-services-java with MIT License | 5 votes |
public WSRequest prepareRequest(String url) { WSRequest wsRequest = this.ws .url(url) .addHeader("Content-Type", "application/json") .addHeader("Cache-Control", "no-cache") .addHeader("Referer", "IotHubManager"); wsRequest.setRequestTimeout(Duration.ofSeconds(10)); return wsRequest; }
Example 2
Source File: WsRequestBuilder.java From remote-monitoring-services-java with MIT License | 5 votes |
public WSRequest prepareRequest(String url) { WSRequest wsRequest = this.ws .url(url) .addHeader("Content-Type", "application/json") .addHeader("Cache-Control", "no-cache") .addHeader("Referer", "Device Telemetry"); wsRequest.setRequestTimeout(Duration.ofSeconds(10)); return wsRequest; }
Example 3
Source File: WsRequestBuilder.java From remote-monitoring-services-java with MIT License | 5 votes |
public WSRequest prepareRequest(String url) { WSRequest wsRequest = this.ws .url(url) .addHeader("Content-Type", "application/json") .addHeader("Cache-Control", "no-cache") .addHeader("Referer", "Config"); wsRequest.setRequestTimeout(Duration.ofSeconds(10)); return wsRequest; }