protected static class AbstractVersionStrategy.PrefixVersionPathStrategy extends ObjectSE implements VersionPathStrategy
VersionPathStrategy。"{version}/path/foo.js"。| コンストラクターと説明 |
|---|
PrefixVersionPathStrategy(StringSE version) |
| 修飾子と型 | メソッドと説明 |
|---|---|
StringSE | addVersion(StringSE path, StringSE version) 指定されたリクエストパスにバージョンを追加します。 |
StringSE | extractVersion(StringSE requestPath) リクエストパスからリソースバージョンを抽出します。 |
StringSE | removeVersion(StringSE requestPath, StringSE version) リクエストパスからバージョンを削除します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic PrefixVersionPathStrategy(StringSE version)
@Nullable public StringSE extractVersion(StringSE requestPath)
VersionPathStrategyVersionPathStrategy の extractVersion requestPath - チェックするリクエストパス null (見つからなかった場合)public StringSE removeVersion(StringSE requestPath, StringSE version)
VersionPathStrategyVersionPathStrategy.extractVersion(String) を介して抽出されたと想定されています。VersionPathStrategy の removeVersion requestPath - 解決されるリソースのリクエストパス version - VersionPathStrategy.extractVersion(String) から取得したバージョン public StringSE addVersion(StringSE path, StringSE version)
VersionPathStrategyVersionPathStrategy の addVersion path - requestPathversion - バージョン