/** * Returns the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. * * @return timeout in milliseconds */ public int getSoTimeout() { return getIntParameter(SO_TIMEOUT, 0); }
/** * Returns non-compliant response body check timeout. * * @return The period of time in milliseconds to wait for a response * body from a non-compliant server. <tt>-1</tt> returned when * non-compliant response body check is disabled * * @deprecated Use {@link HttpMethodParams} * * @see #getParams() * @see HttpMethodParams * @see HttpMethodParams#HEAD_BODY_CHECK_TIMEOUT */ public int getBodyCheckTimeout() { return getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1); }
throw new IOException("Content too large to be buffered: "+ contentLength +" bytes"); int limit = getParams().getIntParameter(HttpMethodParams.BUFFER_WARN_TRIGGER_LIMIT, 1024*1024); if ((contentLength == -1) || (contentLength > limit)) { LOG.warn("Going to buffer response body of large or unknown size. "
getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1);
getIntParameter(HttpMethodParams.STATUS_LINE_GARBAGE_LIMIT, Integer.MAX_VALUE);
/** * Returns the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. * * @return timeout in milliseconds */ public int getSoTimeout() { return getIntParameter(SO_TIMEOUT, 0); }
/** * Returns the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. * * @return timeout in milliseconds */ public int getSoTimeout() { return getIntParameter(SO_TIMEOUT, 0); }
/** * Returns the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. * * @return timeout in milliseconds */ public int getSoTimeout() { return getIntParameter(SO_TIMEOUT, 0); }
/** * Returns the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the * timeout for waiting for data. A timeout value of zero is interpreted as an infinite * timeout. * * @return timeout in milliseconds */ public int getSoTimeout() { return getIntParameter(SO_TIMEOUT, 0); }
/** * Returns non-compliant response body check timeout. * * @return The period of time in milliseconds to wait for a response * body from a non-compliant server. <tt>-1</tt> returned when * non-compliant response body check is disabled * * @deprecated Use {@link HttpMethodParams} * * @see #getParams() * @see HttpMethodParams * @see HttpMethodParams#HEAD_BODY_CHECK_TIMEOUT */ public int getBodyCheckTimeout() { return getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1); }
/** * Returns non-compliant response body check timeout. * * @return The period of time in milliseconds to wait for a response * body from a non-compliant server. <tt>-1</tt> returned when * non-compliant response body check is disabled * * @deprecated Use {@link HttpMethodParams} * * @see #getParams() * @see HttpMethodParams * @see HttpMethodParams#HEAD_BODY_CHECK_TIMEOUT */ public int getBodyCheckTimeout() { return getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1); }
/** * Returns non-compliant response body check timeout. * * @return The period of time in milliseconds to wait for a response * body from a non-compliant server. <tt>-1</tt> returned when * non-compliant response body check is disabled * * @deprecated Use {@link HttpMethodParams} * * @see #getParams() * @see HttpMethodParams * @see HttpMethodParams#HEAD_BODY_CHECK_TIMEOUT */ public int getBodyCheckTimeout() { return getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1); }
/** * Returns non-compliant response body check timeout. * * @return The period of time in milliseconds to wait for a response * body from a non-compliant server. <tt>-1</tt> returned when * non-compliant response body check is disabled * * @deprecated Use {@link HttpMethodParams} * * @see #getParams() * @see HttpMethodParams * @see HttpMethodParams#HEAD_BODY_CHECK_TIMEOUT */ public int getBodyCheckTimeout() { return getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1); }
throw new IOException("Content too large to be buffered: "+ contentLength +" bytes"); int limit = getParams().getIntParameter(HttpMethodParams.BUFFER_WARN_TRIGGER_LIMIT, 1024*1024); if ((contentLength == -1) || (contentLength > limit)) { LOG.warn("Going to buffer response body of large or unknown size. "
throw new IOException("Content too large to be buffered: "+ contentLength +" bytes"); int limit = getParams().getIntParameter(HttpMethodParams.BUFFER_WARN_TRIGGER_LIMIT, 1024*1024); if ((contentLength == -1) || (contentLength > limit)) { LOG.warn("Going to buffer response body of large or unknown size. "
throw new IOException("Content too large to be buffered: "+ contentLength +" bytes"); int limit = getParams().getIntParameter(HttpMethodParams.BUFFER_WARN_TRIGGER_LIMIT, 1024*1024); if ((contentLength == -1) || (contentLength > limit)) { LOG.warn("Going to buffer response body of large or unknown size. "
throw new IOException("Content too large to be buffered: "+ contentLength +" bytes"); int limit = getParams().getIntParameter(HttpMethodParams.BUFFER_WARN_TRIGGER_LIMIT, 1024*1024); if ((contentLength == -1) || (contentLength > limit)) { LOG.warn("Going to buffer response body of large or unknown size. "
throw new IOException("Content too large to be buffered: "+ contentLength +" bytes"); int limit = getParams().getIntParameter(HttpMethodParams.BUFFER_WARN_TRIGGER_LIMIT, 1024*1024); if ((contentLength == -1) || (contentLength > limit)) { LOG.warn("Going to buffer response body of large or unknown size. "
throw cx; } else if (x instanceof SocketTimeoutException) { int timeout = httpRequest.getParams().getIntParameter(HttpMethodParams.SO_TIMEOUT, config.getReadTimeoutMillis()); SocketTimeoutException stx = new SocketTimeoutException("Read timeout " + timeout + " ms");
getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1);