commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@codehaus.org
Subject [jira] Created: (JELLY-96) HttpClient cannot be specified in HttpSession
Date Tue, 11 Nov 2003 21:43:05 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=JELLY-96


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JELLY-96
    Summary: HttpClient cannot be specified in HttpSession
       Type: Bug

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: jelly
 Components: 
             taglib.http

   Assignee: 
   Reporter: Jason Horne

    Created: Tue, 11 Nov 2003 3:42 PM
    Updated: Tue, 11 Nov 2003 3:42 PM

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()) {
            _httpClient = new HttpClient();
            _httpClient.getHostConfiguration().setProxy(getProxyHost(), getProxyPort());
        } 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);
    }
 



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message