クラス 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コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明booleancheckResource(LocaleSE locale) protected voidrenderMergedTemplateModel(MapSE<StringSE, ObjectSE> model, HttpServletRequestEE request, HttpServletResponseEE response) voidsetCharset(StringSE charset) Mustache テンプレートファイルの読み取りに使用する文字セットを設定します。voidsetCompiler(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