Package com.aspectran.web.support.view
Class JspTemplateViewDispatcher
- java.lang.Object
-
- com.aspectran.web.support.view.JspTemplateViewDispatcher
-
- All Implemented Interfaces:
ViewDispatcher
public class JspTemplateViewDispatcher extends java.lang.Object implements ViewDispatcher
JSP or other web resource integration. Sends the model produced by Aspectran's internal activity to the JSP to render the final view page.Created: 2019. 02. 18
-
-
Field Summary
-
Fields inherited from interface com.aspectran.core.activity.response.dispatch.ViewDispatcher
VIEW_DISPATCHER_SETTING_NAME
-
-
Constructor Summary
Constructors Constructor Description JspTemplateViewDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(Activity activity, DispatchRule dispatchRule)Dispatch to other resources as the given rule.java.lang.StringgetContentType()booleanisSingleton()Return whether this view dispatcher corresponds to a singleton instance.voidsetContentType(java.lang.String contentType)voidsetIncludePageKey(java.lang.String includePageKey)voidsetTemplate(java.lang.String template)java.lang.StringtoString()
-
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein interfaceViewDispatcher
-
setContentType
public void setContentType(java.lang.String contentType)
-
setTemplate
public void setTemplate(java.lang.String template)
-
setIncludePageKey
public void setIncludePageKey(java.lang.String includePageKey)
-
dispatch
public void dispatch(Activity activity, DispatchRule dispatchRule) throws ViewDispatcherException
Description copied from interface:ViewDispatcherDispatch to other resources as the given rule.- Specified by:
dispatchin interfaceViewDispatcher- Parameters:
activity- the current activitydispatchRule- the dispatch rule- Throws:
ViewDispatcherException- the view dispatch exception
-
isSingleton
public boolean isSingleton()
Description copied from interface:ViewDispatcherReturn whether this view dispatcher corresponds to a singleton instance.- Specified by:
isSingletonin interfaceViewDispatcher- Returns:
- whether this view dispatcher corresponds to a singleton instance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-