クラス DefaultAjaxHandler

java.lang.ObjectSE
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.webflow.context.servlet.AbstractAjaxHandler
org.springframework.webflow.context.servlet.DefaultAjaxHandler
実装済みのインターフェース一覧:
org.springframework.beans.factory.Awareorg.springframework.context.ApplicationContextAwareorg.springframework.web.context.ServletContextAwareAjaxHandler

public class DefaultAjaxHandler extends AbstractAjaxHandler
デフォルトの AjaxHandler 実装。

値が AJAX_ACCEPT_CONTENT_TYPE である "Accept" ヘッダーまたは名前が AJAX_SOURCE_PARAM であるリクエストパラメーターを通じて Ajax リクエストを検出します。

また、Ajax リクエスト中のリダイレクトの場合、レスポンスヘッダー REDIRECT_URL_HEADER および POPUP_VIEW_HEADER が設定されます。後者は、リダイレクトが popup="true" のビューステートで発生した場合に設定されます。

導入:
2.5
作成者:
Rossen Stoyanchev
  • フィールド概要

    フィールド
    修飾子と型
    フィールド
    説明
    static final StringSE
    Ajax リクエストを示す "Accept" ヘッダー値。
    static final StringSE
    Ajax リクエストを示すリクエストパラメーターの代替。
    static final StringSE
    ポップアップウィンドウから発行されるリダイレクトに設定するレスポンスヘッダー。
    static final StringSE
    Ajax リダイレクトにリダイレクト場所を設定するレスポンスヘッダー

    クラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド

    logger
  • コンストラクター概要

    コンストラクター
    コンストラクター
    説明
    AjaxHandler の チェーンの一部ではない DefaultAjaxHandler を作成します。
    AjaxHandler の チェーンの一部として DefaultAjaxHandler を作成します。
  • 方法の概要

    修飾子と型
    メソッド
    説明
    protected boolean
    isAjaxRequestInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    protected void
    sendAjaxRedirectInternal(StringSE targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup)

    クラス org.springframework.webflow.context.servlet.AbstractAjaxHandler から継承されたメソッド

    isAjaxRequest, sendAjaxRedirect

    クラス org.springframework.web.context.support.WebApplicationObjectSupport から継承されたメソッド

    getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext

    クラス org.springframework.context.support.ApplicationObjectSupport から継承されたメソッド

    getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • フィールドの詳細

    • AJAX_ACCEPT_CONTENT_TYPE

      public static final StringSE AJAX_ACCEPT_CONTENT_TYPE
      Ajax リクエストを示す "Accept" ヘッダー値。
      関連事項:
    • AJAX_SOURCE_PARAM

      public static final StringSE AJAX_SOURCE_PARAM
      Ajax リクエストを示すリクエストパラメーターの代替。
      関連事項:
    • REDIRECT_URL_HEADER

      public static final StringSE REDIRECT_URL_HEADER
      Ajax リダイレクトにリダイレクト場所を設定するレスポンスヘッダー
      関連事項:
  • コンストラクターの詳細

    • DefaultAjaxHandler

      public DefaultAjaxHandler()
      AjaxHandler の チェーンの一部ではない DefaultAjaxHandler を作成します。
    • DefaultAjaxHandler

      public DefaultAjaxHandler(AbstractAjaxHandler delegate)
      AjaxHandler の チェーンの一部として DefaultAjaxHandler を作成します。
  • メソッドの詳細

    • isAjaxRequestInternal

      protected boolean isAjaxRequestInternal(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      次で指定:
      クラス AbstractAjaxHandlerisAjaxRequestInternal 
    • sendAjaxRedirectInternal

      protected void sendAjaxRedirectInternal(StringSE targetUrl, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean popup)
      次で指定:
      クラス AbstractAjaxHandlersendAjaxRedirectInternal