@Override @SuppressWarnings("deprecation") public synchronized void setConnectionTimeout(int newTimeoutInMilliseconds) { delegate.setConnectionTimeout(newTimeoutInMilliseconds); }
public void setConnectionTimeout(int timeout) { sessionClient.setConnectionTimeout(timeout); }
/***********************************************************************/ public InputStream getResponse(HttpClient client, PostMethod post) throws HttpException, IOException { // My_System.markerIn(); // My_System.variable(post.getURI().toString()); // My_System.variable("parameters", post.getParameters()); client.setConnectionTimeout(30000); client.setTimeout(30000); client.executeMethod(post); InputStream r = post.getResponseBodyAsStream(); // My_System.markerOut(); return r; } /***********************************************************************/
client.setConnectionTimeout(45 * RollerConstants.SEC_IN_MS); HttpMethod method = new PostMethod(trackbackURL); method.setQueryString(queryString);