jsonrpc4j
jsonrpc4j copied to clipboard
Cookie-Handling is not possible in the current version with ProxyUtil
Hi,
in the the current version there is no possibility to extend the "extraHeaders" after the creation of the clientProxy.
This was possible in the old version:
RpcService service = ProxyUtil.createClientProxy(
RpcService.class.getClassLoader(),
RpcService.class, false,
rpcClient,
extraHeaders);
String sessionCookieString = service.init();
extraHeaders.put("Cookie", sessionCookieString);
In the current version the "extraHeaders"-Method is private. So this is not possible any more.
kind regards
boecko
I would love to have the extraHeaders
param of createClientProxy()
available too - we use it to pass request IDs from client to server and have to copy parts of this library into our own code now. Thanks.