struts 2 restplugin : how to get the content length for get request
posted 6 years ago
We are building a server side application and a corresponding client side app (Blackberry).
Client's demand is such that the server side application must be able to track the number of bytes transferred and received for a particular user so that the user can be billed.
We need to track the number of bytes and insert them in the database.
Server side application has exposed its services through struts 2 rest plug in URLs, means mobile client will make a rest call to the server, and we need to have some sort of tracking mechanism so that we can get the number of bytes user sent for a particular request.
Now the problem is that it is a GET method call and we are not getting content length or "Content-length" request header.
How can the server side application calculate the data usage by a particular user ?