クラス SimpDestinationMessageMatcher
java.lang.ObjectSE
org.springframework.security.messaging.util.matcher.SimpDestinationMessageMatcher
- 実装されているすべてのインターフェース:
MessageMatcher<ObjectSE>
@DeprecatedSE
public final class SimpDestinationMessageMatcher
extends ObjectSE
implements MessageMatcher<ObjectSE>
使用すべきではありません。
MessageMatcher は、事前定義されたパターンを Message の宛先と比較します。指定された SimpMessageType でのオプションのマッチングもサポートされています。
- 導入:
- 4.0
ネストされたクラスの要約
インターフェース org.springframework.security.messaging.util.matcher.MessageMatcher から継承されたネストクラス / インターフェース
MessageMatcher.MatchResultフィールドのサマリー
フィールドインターフェース org.springframework.security.messaging.util.matcher.MessageMatcher から継承されたフィールド
ANY_MESSAGEコンストラクターの概要
コンストラクターコンストラクター説明SimpDestinationMessageMatcher(StringSE pattern) 使用すべきではありません。指定されたパターン、nullSimpMessageType(すべての型に一致)、およびデフォルトのコンストラクターから作成されたAntPathMatcherを使用して、新しいインスタンスを作成します。SimpDestinationMessageMatcher(StringSE pattern, org.springframework.util.PathMatcher pathMatcher) 使用すべきではありません。指定されたパターンとPathMatcherで新しいインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明createMessageMatcher(StringSE pattern, org.springframework.util.PathMatcher matcher) 使用すべきではありません。指定されたパターンSimpMessageType.MESSAGEとPathMatcherで新しいインスタンスを作成します。createSubscribeMatcher(StringSE pattern, org.springframework.util.PathMatcher matcher) 使用すべきではありません。指定されたパターンSimpMessageType.SUBSCRIBEとPathMatcherで新しいインスタンスを作成します。extractPathVariables(org.springframework.messaging.Message<?> message) 使用すべきではありません。使用すべきではありません。matcher(org.springframework.messaging.Message<?> message) 使用すべきではありません。このMessageMatcherのMessageMatcher.MatchResultを返します。booleanmatches(org.springframework.messaging.Message<?> message) 使用すべきではありません。Messageが一致する場合は true、それ以外の場合は false を返しますtoString()使用すべきではありません。
フィールドの詳細
NULL_DESTINATION_MATCHER
使用すべきではありません。
コンストラクターの詳細
SimpDestinationMessageMatcher
使用すべきではありません。指定されたパターン、null
SimpMessageType(すべての型に一致)、およびデフォルトのコンストラクターから作成されたAntPathMatcherを使用して、新しいインスタンスを作成します。次のルールを使用しているにもかかわらず、マッピングは宛先と一致します。
- ? 1 文字に一致
- * 0 個以上の文字に一致します
- ** パスの 0 個以上の「ディレクトリ」に一致します
いくつかの例:
com/t?st.jsp-com/testに一致しますが、com/tastまたはcom/txstにも一致しますcom/*suffix-comディレクトリのsuffixで終わるすべてのファイルに一致しますcom/**/test-comパスにあるtestで終わるすべての宛先に一致します
- パラメーター:
pattern- 使用するパターン
SimpDestinationMessageMatcher
public SimpDestinationMessageMatcher(StringSE pattern, org.springframework.util.PathMatcher pathMatcher) 使用すべきではありません。指定されたパターンと
PathMatcherで新しいインスタンスを作成します。- パラメーター:
pattern- 使用するパターンpathMatcher- 使用するPathMatcher。
メソッドの詳細
matches
public boolean matches(org.springframework.messaging.Message<?> message) 使用すべきではありません。インターフェースからコピーされた説明:MessageMatcherMessageが一致する場合は true、それ以外の場合は false を返します- 次で指定:
- インターフェース
MessageMatcher<ObjectSE>のmatches - パラメーター:
message- 一致するMessage- 戻り値:
Messageが一致する場合は true、そうでない場合は false
matcher
使用すべきではありません。インターフェースからコピーされた説明:MessageMatcherこのMessageMatcherのMessageMatcher.MatchResultを返します。デフォルトの実装では、MessageMatcher.MatchResult.getVariables()が呼び出されるとCollections.emptyMap()が返されます。- 次で指定:
- インターフェース
MessageMatcher<ObjectSE>のmatcher - 戻り値:
- この
MessageMatcherをMessageと比較したMatchResult
extractPathVariables
public MapSE<StringSE,StringSE> extractPathVariables(org.springframework.messaging.Message<?> message) 使用すべきではありません。getMessageTypeMatcher
使用すべきではありません。toString
使用すべきではありません。createSubscribeMatcher
public static SimpDestinationMessageMatcher createSubscribeMatcher(StringSE pattern, org.springframework.util.PathMatcher matcher) 使用すべきではありません。指定されたパターン
SimpMessageType.SUBSCRIBEとPathMatcherで新しいインスタンスを作成します。- パラメーター:
pattern- 使用するパターンmatcher- 使用するPathMatcher。
createMessageMatcher
public static SimpDestinationMessageMatcher createMessageMatcher(StringSE pattern, org.springframework.util.PathMatcher matcher) 使用すべきではありません。指定されたパターン
SimpMessageType.MESSAGEとPathMatcherで新しいインスタンスを作成します。- パラメーター:
pattern- 使用するパターンmatcher- 使用するPathMatcher。
PathPatternMessageMatcherを使用