Hi,

 

I'm trying to use a SocketFactory to create sockets within Jetty's HTTP
client. The pre-existing SocketFactory connects to a proprietary socket
proxy and implements a proprietary connection authentication mechanism.

 

I've tried overriding the connect(SocketAddress address, Map<String, Object>
context) method on HttpClientTransportOverHTTP to create a Socket from the
SocketFactory and then use socket.getChannel() and let Jetty take over from
there.

 

My problem is that I've got to get the SelectionManager to take ownership of
an already connected channel by creating an EndPoint. Currently creating an
EndPoint requires a SelectionKey from the connection establishment.

 

Has anyone needed to or tried to create Jetty HTTP client connections via a
SocketFactory?

 

Is there a simpler way of doing this?

 

 

An alternative is to re-implement the proprietary authentication mechanism
similar to a Socks4ProxyConnection but I would prefer to use the existing
SocketFactory.

 

Thanks in advance,

>From Richard.

_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to