LoginSignup
3
4

More than 5 years have passed since last update.

現在の URL

Posted at

現在リクエストされている URL は play.mvc.Http.Request#url で取得することができます。
当然、url フィールドは static ではないので、スレッドに紐付くインスタンスを取得してから参照します。

String url = play.mvc.Http.Request.current().url;

参考

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4