インターフェースの使用
org.springframework.http.server.PathContainer
PathContainer を使用するパッケージ
パッケージ
説明
サーバー側の HTTP 上の抽象化が含まれています。
抽象基本クラスを含む HandlerMapping 実装を提供します。
カスタム実装の抽象基本クラスを含む、標準の HandlerMapping 実装を提供します。
Spring に付属するサーブレット MVC フレームワークの標準コントローラー実装。
一致する HTTP リクエストパスの専用サポート。
org.springframework.http.server 内の PathContainer 使用
org.springframework.http.server 内の PathContainer サブインターフェース修飾子と型インターフェース説明interfacePathContainer を返す org.springframework.http.server のメソッド修飾子と型メソッド説明RequestPath.contextPath()アプリケーションを表す URL パスの一部を返します。static PathContainerstatic PathContainerPathContainer.parsePath(StringSE path, PathContainer.Options options) パス値をSeparatorおよびPathSegment要素のシーケンスに解析します。RequestPath.pathWithinApplication()通常、アプリケーション内のリクエストマッピングに使用される、コンテキストパスの後のリクエストパスの部分。default PathContainerPathContainer.subPath(int index) 指定されたオフセットから要素リストにサブパスを抽出します。default PathContainerPathContainer.subPath(int startIndex, int endIndex) 指定された開始オフセットから要素リスト(包括的)および終了オフセット(包括的)へのサブパスを抽出します。org.springframework.web.reactive.handler 内の PathContainer 使用
型 PathContainer のパラメーターを持つ org.springframework.web.reactive.handler のメソッド修飾子と型メソッド説明AbstractUrlHandlerMapping.lookupHandler(PathContainer lookupPath, ServerWebExchange exchange) 指定された URL ルックアップパスのハンドラーインスタンスをルックアップします。org.springframework.web.servlet.handler 内の PathContainer 使用
型 PathContainer のパラメーターを持つ org.springframework.web.servlet.handler のコンストラクター修飾子コンストラクター説明RequestMatchResult(PathPattern pathPattern, PathContainer lookupPath) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。一致したPathPatternを使用してインスタンスを作成します。org.springframework.web.servlet.mvc 内の PathContainer 使用
型 PathContainer のパラメーターを持つ org.springframework.web.servlet.mvc のメソッド修飾子と型メソッド説明protected @Nullable CacheControlWebContentInterceptor.lookupCacheControl(PathContainer path) 指定された解析済みpathのCacheControlインスタンスを検索します。WebContentInterceptor.lookupCacheSeconds(PathContainer path) 指定された解析済みpathの cacheSeconds 値を検索します。org.springframework.web.util.pattern 内の PathContainer 使用
修飾子と型メソッド説明PathPattern.extractPathWithinPattern(PathContainer path) 指定されたパスのパターンマッピングされた部分を決定します。PathPattern.PathRemainingMatchInfo.getPathMatched()パターンと一致したパスの部分を返します。PathPattern.PathRemainingMatchInfo.getPathRemaining()パターンと一致しなかったパスの部分を返します。型 PathContainer のパラメーターを持つ org.springframework.web.util.pattern のメソッド修飾子と型メソッド説明PathPattern.extractPathWithinPattern(PathContainer path) 指定されたパスのパターンマッピングされた部分を決定します。PathPattern.matchAndExtract(PathContainer pathContainer) このパターンを指定された URI パスに一致させ、抽出された URI テンプレート変数とパスパラメーター(マトリックス変数)を返します。booleanPathPattern.matches(PathContainer pathContainer) このパターンが指定されたパスに一致するかどうか。PathPattern.matchStartOfPath(PathContainer pathContainer) 指定されたパスの先頭に一致し、このパターンでカバーされていない残りの部分を返します。