クラス AbstractUrlViewController
java.lang.ObjectSE
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.AbstractController
org.springframework.web.servlet.mvc.AbstractUrlViewController
- 実装されたすべてのインターフェース:
Aware
、ApplicationContextAware
、ServletContextAware
、Controller
- 既知の直属サブクラス
UrlFilenameViewController
リクエスト URL に基づいてビュー名を返す
Controllers
の抽象基本クラス。URL および構成可能な URL ルックアップからビュー名を決定するためのインフラストラクチャを提供します。後者については、alwaysUseFullPath
および urlDecode
プロパティを参照してください。
- 導入:
- 1.2.6
- 作成者:
- Juergen Hoeller
- 関連事項:
フィールドのサマリー
クラス org.springframework.web.servlet.support.WebContentGenerator から継承されたフィールド
HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド
logger
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected UrlPathHelper
ルックアップパスの解決に使用する UrlPathHelper を返します。protected abstract StringSE
指定されたルックアップパスに基づいて、このリクエストに対してレンダリングするビューの名前を返します。protected ModelAndView
handleRequestInternal
(HttpServletRequestEE request, HttpServletResponseEE response) ルックアップに使用する URL パスを取得し、getViewNameForRequest(jakarta.servlet.http.HttpServletRequest)
に委譲します。void
setAlwaysUseFullPath
(boolean alwaysUseFullPath) URL ルックアップが現在のサーブレットコンテキスト内で常にフルパスを使用する場合に設定します。void
setRemoveSemicolonContent
(boolean removeSemicolonContent) ";" の場合に設定(セミコロン)コンテンツはリクエスト URI から削除する必要があります。void
setUrlDecode
(boolean urlDecode) コンテキストパスとリクエスト URI を URL デコードするかどうかを設定します。void
setUrlPathHelper
(UrlPathHelper urlPathHelper) ルックアップパスの解決に使用する UrlPathHelper を設定します。クラス org.springframework.web.servlet.mvc.AbstractController から継承されたメソッド
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
クラス org.springframework.web.servlet.support.WebContentGenerator から継承されたメソッド
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
クラス org.springframework.web.context.support.WebApplicationObjectSupport から継承されたメソッド
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたメソッド
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
コンストラクターの詳細
AbstractUrlViewController
public AbstractUrlViewController()
メソッドの詳細
setAlwaysUseFullPath
public void setAlwaysUseFullPath(boolean alwaysUseFullPath) URL ルックアップが現在のサーブレットコンテキスト内で常にフルパスを使用する場合に設定します。それ以外の場合、現在のサーブレットマッピング内のパスが適用されます(つまり、web.xml の ".../*" サーブレットマッピングの場合)。デフォルトは "false" です。setUrlDecode
public void setUrlDecode(boolean urlDecode) コンテキストパスとリクエスト URI を URL デコードするかどうかを設定します。どちらも、サーブレットパスとは対照的に、サーブレット API によってデコードされずに返されます。サーブレット仕様(ISO-8859-1)に従って、リクエストエンコーディングまたはデフォルトエンコーディングのいずれかを使用します。
setRemoveSemicolonContent
public void setRemoveSemicolonContent(boolean removeSemicolonContent) ";" の場合に設定(セミコロン)コンテンツはリクエスト URI から削除する必要があります。setUrlPathHelper
ルックアップパスの解決に使用する UrlPathHelper を設定します。これを使用して、デフォルトの UrlPathHelper をカスタムサブクラスでオーバーライドするか、複数の MethodNameResolvers および HandlerMappings で共通の UrlPathHelper 設定を共有します。
getUrlPathHelper
ルックアップパスの解決に使用する UrlPathHelper を返します。handleRequestInternal
protected ModelAndView handleRequestInternal(HttpServletRequestEE request, HttpServletResponseEE response) ルックアップに使用する URL パスを取得し、getViewNameForRequest(jakarta.servlet.http.HttpServletRequest)
に委譲します。また、RequestContextUtils.getInputFlashMap(jakarta.servlet.http.HttpServletRequest)
のコンテンツをモデルに追加します。getViewNameForRequest
指定されたルックアップパスに基づいて、このリクエストに対してレンダリングするビューの名前を返します。handleRequestInternal(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
によって呼び出されます。- パラメーター:
request
- 現在の HTTP リクエスト- 戻り値:
- このリクエストのビュー名 (非
null
) - 関連事項: