jsonrpc4j icon indicating copy to clipboard operation
jsonrpc4j copied to clipboard

Cookie-Handling is not possible in the current version with ProxyUtil

Open boecko opened this issue 8 years ago • 1 comments

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

boecko avatar Feb 01 '17 16:02 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.

PunchyRascal avatar Feb 17 '22 14:02 PunchyRascal