public abstract class AbstractVersionStrategy extends ObjectSE implements VersionStrategy
VersionStrategy 実装の抽象基本クラス。次のバージョンをサポートします:
メモ: この基本クラスは、バージョン文字列の生成をサポートしていません。
| 修飾子と型 | クラスと説明 |
|---|---|
protected static class | AbstractVersionStrategy.FileNameVersionPathStrategy ファイル名ベースの VersionPathStrategy、たとえば |
protected static class | AbstractVersionStrategy.PrefixVersionPathStrategy プレフィックスベースの VersionPathStrategy、たとえば |
| 修飾子 | コンストラクターと説明 |
|---|---|
protected | AbstractVersionStrategy(VersionPathStrategy pathStrategy) |
| 修飾子と型 | メソッドと説明 |
|---|---|
StringSE | addVersion(StringSE requestPath, StringSE version) 指定されたリクエストパスにバージョンを追加します。 |
StringSE | extractVersion(StringSE requestPath) リクエストパスからリソースバージョンを抽出します。 |
VersionPathStrategy | getVersionPathStrategy() |
StringSE | removeVersion(StringSE requestPath, StringSE version) リクエストパスからバージョンを削除します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEgetResourceVersionprotected final Log logger
protected AbstractVersionStrategy(VersionPathStrategy pathStrategy)
public VersionPathStrategy getVersionPathStrategy()
@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 requestPath, StringSE version)
VersionPathStrategyVersionPathStrategy の addVersion requestPath - requestPathversion - バージョン