Issue Details (XML | Word | Printable)

Key: HTTPCORE-14
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Oleg Kalnichevski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
HttpComponents HttpCore

Consider decoupling HttpHost and Scheme and moving Scheme, SocketFactory and SecureSocketFactory to HttpConn

Created: 27/Sep/06 06:30 PM   Updated: 11/Nov/07 07:22 PM
Return to search
Component/s: HttpCore
Affects Version/s: None
Fix Version/s: 4.0-alpha3

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 20060929-httphost.patch 2006-09-29 12:03 PM Oleg Kalnichevski 21 kB

Resolution Date: 29/Sep/06 08:24 PM


 Description  « Hide
SocketFactory interface in HttpCore implies a blocking process of opening a new socket. Moreover, there is no way to interrupt the process of opening a connection due to limitations of Java 1.3 API.

I suggest the SocketFactory and SecureSocketFactory interfaces and the Scheme class dependent on those interfaces be moved to HttpConn and the HttpHost class be decoupled from Scheme.

(This is going to be the last controversial bit I wanted to propose and once this issue is resolved I can safely declare I am done with HttpCore)

Oleg

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Oleg Kalnichevski added a comment - 27/Sep/06 06:31 PM
Please review and let me know what you think

Oleg

Roland Weber added a comment - 28/Sep/06 05:22 PM
Hi Oleg,

I think the scheme should remain in HttpHost as a String. Maybe with automatic lowercase conversion.
The getter method could be called getSchemeName instead of getScheme, to avoid confusion.
Otherwise, I'm fine with this change.

(I have one more idea for HttpCore, but it's rather a side issue and doesn't have to go into the next alpha.)

cheers,
  Roland

Oleg Kalnichevski added a comment - 29/Sep/06 12:03 PM
Roland, how about this?

Oleg

Roland Weber added a comment - 29/Sep/06 05:53 PM
Yes, that's it.

cheers,
  Roland

Oleg Kalnichevski added a comment - 29/Sep/06 08:24 PM
Patch checked in. Files moved.

Oleg