Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request URL using Jersey

 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to get the Request URL from where the webservice is being called? I used UriInfo but still it doesnt works.

I am using Jersey and Spring, both latest build.

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read ItDoesntWorkIsUseless and TellTheDetails.
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Ulf. I had found the solution just before. I used @Context UriInfo as method argument and get the complete URL using getAbsolutePath() method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic