クラス MustacheView
- 実装されたすべてのインターフェース:
Aware
、BeanNameAware
、InitializingBean
、ApplicationContextAware
、ServletContextAware
、View
Mustache テンプレートエンジンを使用した Spring MVC
View
。- 導入:
- 2.0.0
- 作成者:
- Brian Clozel, Dave Syer, Phillip Webb
フィールドサマリー
クラス org.springframework.web.servlet.view.AbstractTemplateView から継承されたフィールド
SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE
クラス org.springframework.web.servlet.view.AbstractView から継承されたフィールド
DEFAULT_CONTENT_TYPE
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド
logger
インターフェース org.springframework.web.servlet.View から継承されたフィールド
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明boolean
checkResource
(LocaleSE locale) protected void
renderMergedTemplateModel
(MapSE<StringSE, ObjectSE> model, HttpServletRequestEE request, HttpServletResponseEE response) void
setCharset
(StringSE charset) Mustache テンプレートファイルの読み取りに使用する文字セットを設定します。void
setCompiler
(com.samskivert.mustache.Mustache.Compiler compiler) このビューで使用する Mustache コンパイラーを設定します。クラス org.springframework.web.servlet.view.AbstractTemplateView から継承されたメソッド
applyContentType, renderMergedOutputModel, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelpers
クラス org.springframework.web.servlet.view.AbstractUrlBasedView から継承されたメソッド
afterPropertiesSet, getUrl, isUrlRequired, setUrl, toString
クラス org.springframework.web.servlet.view.AbstractView から継承されたメソッド
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
クラス org.springframework.web.context.support.WebApplicationObjectSupport から継承されたメソッド
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたメソッド
getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
コンストラクターの詳細
MustacheView
public MustacheView()
メソッドの詳細
setCompiler
public void setCompiler(com.samskivert.mustache.Mustache.Compiler compiler) このビューで使用する Mustache コンパイラーを設定します。通常、このプロパティは直接設定されません。代わりに、Mustache テンプレートのコンパイルに使用される Spring アプリケーションコンテキストで単一の
Mustache.Compiler
が期待されます。- パラメーター:
compiler
- Mustache コンパイラー
setCharset
Mustache テンプレートファイルの読み取りに使用する文字セットを設定します。- パラメーター:
charset
- テンプレートファイルの読み取りに使用する文字セット
checkResource
- オーバーライド:
- クラス
AbstractUrlBasedView
のcheckResource
- 例外:
ExceptionSE
renderMergedTemplateModel
protected void renderMergedTemplateModel(MapSE<StringSE, ObjectSE> model, HttpServletRequestEE request, HttpServletResponseEE response) throws ExceptionSE- 次で指定:
- クラス
AbstractTemplateView
のrenderMergedTemplateModel
- 例外:
ExceptionSE