public abstract class SimpAttributesContextHolder extends ObjectSE
SimpAttributes オブジェクトの形式で公開するホルダークラス。| コンストラクターと説明 |
|---|
SimpAttributesContextHolder() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static SimpAttributes | currentAttributes() 現在スレッドにバインドされている SimpAttributes を返すか、バインドされていない場合は IllegalStateExceptionSE を発生させます。 |
static SimpAttributes | getAttributes() 現在スレッドにバインドされている SimpAttributes を返します。 |
static void | resetAttributes() 現在のスレッドの SimpAttributes をリセットします。 |
static void | setAttributes(SimpAttributes attributes) 指定された SimpAttributes を現在のスレッドにバインドします。 |
static void | setAttributesFromMessage(Message<?> message) 指定されたメッセージから SiMP セッション属性を抽出し、 SimpAttributes インスタンスにラップして、現在のスレッドにバインドします。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static void resetAttributes()
public static void setAttributes(@Nullable SimpAttributes attributes)
attributes - 公開する RequestAttributespublic static void setAttributesFromMessage(Message<?> message)
SimpAttributes インスタンスにラップして、現在のスレッドにバインドします。message - セッション属性を抽出するメッセージ @Nullable public static SimpAttributes getAttributes()
null public static SimpAttributes currentAttributes() throws IllegalStateExceptionSE
IllegalStateExceptionSE を発生させます。nullIllegalStateExceptionSE - 属性がバインドされていない場合