public class ParameterizableViewController extends AbstractController
HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
logger
コンストラクターと説明 |
---|
ParameterizableViewController() |
修飾子と型 | メソッドと説明 |
---|---|
HttpStatus | getStatusCode() 設定済みの HTTP ステータスコードまたは null を返します。 |
View | getView() View オブジェクト、または ViewResolver を介して DispatcherServlet によって解決されるビュー名を使用している場合は null を返します。 |
StringSE | getViewName() 委譲先のビューの名前、または View インスタンスを使用している場合は null を返します。 |
protected ModelAndView | handleRequestInternal(HttpServletRequestEE request, HttpServletResponseEE response) 指定されたビュー名を持つ ModelAndView オブジェクトを返します。 |
boolean | isStatusOnly() リクエストがコントローラー内で完全に処理されるかどうか。 |
void | setStatusCode(HttpStatus statusCode) このコントローラーがレスポンスに設定する HTTP ステータスコードを構成します。 |
void | setStatusOnly(boolean statusOnly) このプロパティを使用して、リクエストがコントローラー内で完全に処理されていると見なされ、レンダリングにビューを使用しないことを示すことができます。 |
void | setView(View view) ModelAndView の View オブジェクトを設定して返します。 |
void | setViewName(StringSE viewName) ModelAndView が返すビュー名を設定し、ViewResolver を介して DispatcherServlet によって解決されるようにします。 |
StringSE | toString() |
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, waitSE, waitSE, waitSE
public void setViewName(@Nullable StringSE viewName)
public void setView(View view)
@Nullable public View getView()
null
を返します。public void setStatusCode(@Nullable HttpStatus statusCode)
"redirect:" プレフィックス付きビュー名が設定されている場合、RedirectView がそれを行うため、このプロパティを設定する必要はありません。ただし、このプロパティは、RedirectView
の 3xx ステータスコードをオーバーライドするために引き続き使用できます。リダイレクトを完全に制御するには、RedirectView
インスタンスを提供します。
ステータスコードが 204 で、ビューが構成されていない場合、リクエストはコントローラー内で完全に処理されます。
@Nullable public HttpStatus getStatusCode()
null
を返します。public void setStatusOnly(boolean statusOnly)
setStatusCode(org.springframework.http.HttpStatus)
と組み合わせて使用すると便利です。 デフォルトでは、これは false
に設定されています。
public boolean isStatusOnly()
protected ModelAndView handleRequestInternal(HttpServletRequestEE request, HttpServletResponseEE response) throws ExceptionSE
"input" FlashMap
のコンテンツもモデルに追加されます。
AbstractController
の handleRequestInternal
ExceptionSE
getViewName()
public StringSE toString()
ObjectSE
の toStringSE