users@jersey.java.net

[Jersey] Grizzly Webserver and Jersery Client (with reverse tls handshake)

From: Patrick Tief <patrick.tief_at_mailbox.tu-dresden.de>
Date: Fri, 21 Feb 2014 17:47:11 +0100

Hello,

I'm trying to use the jersey client for a grizzly webserver. At [1] you
can find the
example i use to create a tls reverse handshake in order to use the
webserver
over a tls secured connection (i know its a unusual usecase!)
To explain the it:
1. Gateway is the TLS client and starts a http server over a tls secured
connection
2. Administrator is the TLS Server and uses the tls secured connection
to use a rest
webservice at the Gateway
After the handshake is complete, i get a Connection Object in
AdministratorFilter.onComplete
(org.glassfish.grizzly.Connection) and i want to use that connection with a
jersey client. Is it possible ?

Thanks in advance!

Patrick

[1] https://github.com/oleksiys/samples/tree/master/smart-meter-gateway