public abstract class AbstractUrlViewController extends AbstractController
Controllers
の抽象基本クラス。URL および構成可能な URL ルックアップからビュー名を決定するためのインフラストラクチャを提供します。後者については、alwaysUseFullPath
および urlDecode
プロパティを参照してください。
setAlwaysUseFullPath(boolean)
, setUrlDecode(boolean)
HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
logger
コンストラクターと説明 |
---|
AbstractUrlViewController() |
修飾子と型 | メソッドと説明 |
---|---|
protected UrlPathHelper | getUrlPathHelper() ルックアップパスの解決に使用する UrlPathHelper を返します。 |
protected abstract StringSE | getViewNameForRequest(HttpServletRequestEE request) 指定されたルックアップパスに基づいて、このリクエストに対してレンダリングするビューの名前を返します。 |
protected ModelAndView | handleRequestInternal(HttpServletRequestEE request, HttpServletResponseEE response) ルックアップに使用する URL パスを取得し、 getViewNameForRequest(javax.servlet.http.HttpServletRequest) に委譲します。 |
void | setAlwaysUseFullPath(boolean alwaysUseFullPath) URL ルックアップが現在のサーブレットコンテキスト内で常にフルパスを使用する場合に設定します。 |
void | setRemoveSemicolonContent(boolean removeSemicolonContent) ";" の場合に設定(セミコロン)コンテンツはリクエスト URI から削除する必要があります。 |
void | setUrlDecode(boolean urlDecode) コンテキストパスとリクエスト URI を URL デコードするかどうかを設定します。 |
void | setUrlPathHelper(UrlPathHelper urlPathHelper) ルックアップパスの解決に使用する UrlPathHelper を設定します。 |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public void setAlwaysUseFullPath(boolean alwaysUseFullPath)
public void setUrlDecode(boolean urlDecode)
サーブレット仕様(ISO-8859-1)に従って、リクエストエンコーディングまたはデフォルトエンコーディングのいずれかを使用します。
public void setRemoveSemicolonContent(boolean removeSemicolonContent)
public void setUrlPathHelper(UrlPathHelper urlPathHelper)
これを使用して、デフォルトの UrlPathHelper をカスタムサブクラスでオーバーライドするか、複数の MethodNameResolvers および HandlerMappings で共通の UrlPathHelper 設定を共有します。
protected UrlPathHelper getUrlPathHelper()
protected ModelAndView handleRequestInternal(HttpServletRequestEE request, HttpServletResponseEE response)
getViewNameForRequest(javax.servlet.http.HttpServletRequest)
に委譲します。また、RequestContextUtils.getInputFlashMap(javax.servlet.http.HttpServletRequest)
のコンテンツをモデルに追加します。protected abstract StringSE getViewNameForRequest(HttpServletRequestEE request)
handleRequestInternal(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
によって呼び出されます。request
- 現在の HTTP リクエスト null
)handleRequestInternal(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
, setAlwaysUseFullPath(boolean)
, setUrlDecode(boolean)