Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

struts 2 restplugin : how to get the content length for get request  RSS feed

 
Girish Vasmatkar
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

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 ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!