public interface RequestPath extends PathContainer
PathContainer.Element, PathContainer.PathSegment, PathContainer.Separator
修飾子と型 | メソッドと説明 |
---|---|
PathContainer | contextPath() アプリケーションを表す URL パスの一部を返します。 |
RequestPath | modifyContextPath(java.lang.String contextPath) コンテキストパスが変更された新しい RequestPath インスタンスを返します。 |
static RequestPath | parse(java.net.URI uri, java.lang.String contextPath) 指定されたパラメーターで新しい RequestPath を作成します。 |
PathContainer | pathWithinApplication() コンテキストパスの後のリクエストパスの部分。 |
PathContainer contextPath()
コンテキストパスは、WAR としてサーブレットコンテナーにデプロイする場合など、基盤となるランタイム API から取得される場合と、ContextPathCompositeHandler
を使用して WebFlux アプリケーションで割り当てられる場合があります。
PathContainer pathWithinApplication()
RequestPath modifyContextPath(java.lang.String contextPath)
RequestPath
インスタンスを返します。新しいコンテキストパスは、開始時に 0 以上のパスセグメントと一致する必要があります。contextPath
- 新しいコンテキストパス RequestPath
インスタンス static RequestPath parse(java.net.URI uri, @Nullable java.lang.String contextPath)
RequestPath
を作成します。