Java Clent: How to pass headers (custom app info)
Hello,
I have a Java client and I need to pass some custom http header(s) while connecting the client.
(which I intend to use in LSS-meta/notifyUser method to meet some requirements.
LSS meta adapter method: notifyUser( String, String, Map) )
Could you please guide/advise me => how to do this in java client.
Somehow I am not able to find a way do so in java client.
(I can very well send the headers using curl(http) connection)
Your help is very much appreciated.
Regards,
Digambar
Follow up: Java Clent: How to pass headers (custom app info)
Hello Giuseppe
Thanks for the info.
But, I still don't know if I can pass the headers through Java Client or Not?
Basically what I want to achieve is something like below (only java client is left to do so):
.................................................. ...............................................
[lss@localhost curl]$
[lss@localhost curl]$ curl -H 'ClntType:GroupId' -H 'Clntvalue:f583d89a-4d6d-4c23-aa43-86ad03575dc5' -H 'AppClnt:E8341CF2DE42488392A1E8B7411F5C2C' -H 'IPAddress:10.70.225.123' -H 'RequestDate:2013-08-06T09:22:17.624393' http://localhost:8080/lightstreamer/...r&LS_user=X001
[2] 21257
[lss@localhost curl]$ OK
SessionId:S2a2d207f5f8123e4T5630130
KeepaliveMillis:5000
MaxBandwidth:0.0
PROBE
PROBE
-----------------------------------------------------------------------------------------------------
Is that possible through/using Java client ?
If yes, I would like to know: how to do so.
If not, I would use the suggested alternatives (info provided earlier).
Please let me know.
Regards,
Digambar
Quote:
Originally Posted by
giuseppe.corti
Hi Digambar,
If your requirement is to send custom information................................
Hope that helps.
Giuseppe