Interface HttpConnectionFactory<T extends HttpConnection>
- Type Parameters:
T- The type ofHttpConnection.
- All Known Implementing Classes:
DefaultBHttpClientConnectionFactory, DefaultBHttpServerConnectionFactory
public interface HttpConnectionFactory<T extends HttpConnection>
Factory for
HttpConnection instances.- Since:
- 4.3
-
Method Summary
-
Method Details
-
createConnection
- Parameters:
socket- the plain socket SSL socket has been layered over.- Returns:
- a new HttpConnection.
- Throws:
IOException- in case of an I/O error.
-
createConnection
- Parameters:
sslSocket- the SSL socket. May benull.socket- the plain socket SSL socket has been layered over.- Returns:
- a new HttpConnection.
- Throws:
IOException- in case of an I/O error.- Since:
- 5.3
-