You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ji...@codehaus.org on 2003/11/11 22:43:05 UTC

[jira] Created: (JELLY-96) HttpClient cannot be specified in HttpSession

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