Log HTTP parameter values in ClientParamsStack#getParameter

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@610052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2008-01-08 16:24:51 +00:00
parent 74f349b0c5
commit 33498f875a
1 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,8 @@
package org.apache.http.impl.client; package org.apache.http.impl.client;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.params.HttpParams; import org.apache.http.params.HttpParams;
import org.apache.http.params.AbstractHttpParams; import org.apache.http.params.AbstractHttpParams;
@ -75,6 +77,8 @@ import org.apache.http.params.AbstractHttpParams;
*/ */
public class ClientParamsStack extends AbstractHttpParams { public class ClientParamsStack extends AbstractHttpParams {
private static final Log LOG = LogFactory.getLog(ClientParamsStack.class);
/** The application parameter collection, or <code>null</code>. */ /** The application parameter collection, or <code>null</code>. */
protected final HttpParams applicationParams; protected final HttpParams applicationParams;
@ -211,6 +215,9 @@ public class ClientParamsStack extends AbstractHttpParams {
if ((result == null) && (applicationParams != null)) { if ((result == null) && (applicationParams != null)) {
result = applicationParams.getParameter(name); result = applicationParams.getParameter(name);
} }
if (LOG.isDebugEnabled()) {
LOG.debug("'" + name + "': " + result);
}
return result; return result;
} }