Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
org.apache.commons.jelly.tags.http.SessionTag always creates a new HttpClient rather than using one provided by the user.
The doTag method should be changed from this:
public void doTag(XMLOutput xmlOutput) throws JellyTagException {
if (isProxyAvailable())
else
{ _httpClient = new HttpClient(); }...to this:
public void doTag(XMLOutput xmlOutput) throws JellyTagException {
if (_httpClient == null)
_httpClient = new HttpClient();
if (isProxyAvailable())
{ _httpClient.getHostConfiguration().setProxy(getProxyHost(), getProxyPort()); } invokeBody(xmlOutput);
}