public abstract class RequestContextAwareTag extends TagSupportEE implements TryCatchFinallyEE
RequestContext
を必要とするすべてのタグのスーパークラス。RequestContext
インスタンスは、WebApplicationContext
、Locale
SE、Theme
などの現在の状態への簡単なアクセスを提供します。
主に DispatcherServlet
リクエストを対象としています。DispatcherServlet
の外部で使用される場合、フォールバックを使用します。
RequestContext
, DispatcherServlet
, 直列化された形式 修飾子と型 | フィールドと説明 |
---|---|
protected Log | logger サブクラスで利用可能なロガー。 |
static StringSE | REQUEST_CONTEXT_PAGE_ATTRIBUTE ページレベル RequestContext インスタンスの PageContext EE 属性。 |
idEE, pageContextEE
EVAL_BODY_AGAINEE
EVAL_BODY_INCLUDEEE, EVAL_PAGEEE, SKIP_BODYEE, SKIP_PAGEEE
コンストラクターと説明 |
---|
RequestContextAwareTag() |
修飾子と型 | メソッドと説明 |
---|---|
void | doCatch(ThrowableSE throwable) |
void | doFinally() |
int | doStartTag() 現在の RequestContext を作成して公開します。 |
protected abstract int | doStartTagInternal() doStartTag によって呼び出され、実際の作業を実行します。 |
protected RequestContext | getRequestContext() 現在の RequestContext を返します。 |
doAfterBodyEE, doEndTagEE, findAncestorWithClassEE, getIdEE, getParentEE, getValueEE, getValuesEE, releaseEE, removeValueEE, setIdEE, setPageContextEE, setParentEE, setValueEE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static final StringSE REQUEST_CONTEXT_PAGE_ATTRIBUTE
RequestContext
インスタンスの PageContext
EE 属性。protected final Log logger
public final int doStartTag() throws JspExceptionEE
doStartTagInternal()
に委譲します。TagEE
の doStartTagEE
TagSupportEE
の doStartTagEE
JspExceptionEE
REQUEST_CONTEXT_PAGE_ATTRIBUTE
, JspAwareRequestContext
protected final RequestContext getRequestContext()
protected abstract int doStartTagInternal() throws ExceptionSE
ExceptionSE
- 例外、JspException 以外のチェックされたものは、doStartTag によって JspException にラップされます。TagSupport.doStartTag()
EEpublic void doCatch(ThrowableSE throwable) throws ThrowableSE
TryCatchFinallyEE
の doCatchEE
ThrowableSE
public void doFinally()
TryCatchFinallyEE
の doFinallyEE