Is there a way to add application-specific HTTP header parameters to the outgoing RPC from the SmartGWT Client?
I see there is a com.smartgwt.client.rpc.RPCManager class, but no ability to register a callback handler to augment the outgoing HTTP requests.
The motivation for doing this is to be able to add proprietary fields to the HTTP message which are used by the server for user identification and message integrity checking. When the RPC arrives on the server side a HTTP Servlet Filter examines the request to determine if its authentic and who its from before allowing it to be dispatched to SmartGWT servlet for processing.
Alternatively, is there a way to add such parameters automatically to every RPC payload?
Any guidance on how to achieve this would be greatly appreciated. Thx in advance.
- Brenton
I see there is a com.smartgwt.client.rpc.RPCManager class, but no ability to register a callback handler to augment the outgoing HTTP requests.
The motivation for doing this is to be able to add proprietary fields to the HTTP message which are used by the server for user identification and message integrity checking. When the RPC arrives on the server side a HTTP Servlet Filter examines the request to determine if its authentic and who its from before allowing it to be dispatched to SmartGWT servlet for processing.
Alternatively, is there a way to add such parameters automatically to every RPC payload?
Any guidance on how to achieve this would be greatly appreciated. Thx in advance.
- Brenton
Comment