Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タイプのリクエストを処理する場合
GET /someFile.txt HTTP/1.1
/someFile.txt を簡単に見つけるのに役立つライブラリはありますか、それとも手動で分割して解析するのが一般的ですか? 大したことではありません。
message.split("\\s+")[1] // works but just looks silly
サーバー(サーブレットコンテナ)側にいるHttpServletRequest.getPathInfo場合は、仕事をする必要があります。
HttpServletRequest.getPathInfo
http://goo.gl/gRW7H