Class AbstractViewDispatcher
java.lang.Object
com.aspectran.core.activity.response.dispatch.AbstractViewDispatcher
- All Implemented Interfaces:
ViewDispatcher
- Direct Known Subclasses:
FreeMarkerViewDispatcher
,JspTemplateViewDispatcher
,JspViewDispatcher
,PebbleViewDispatcher
,ThymeleafViewDispatcher
-
Field Summary
Fields inherited from interface com.aspectran.core.activity.response.dispatch.ViewDispatcher
VIEW_DISPATCHER_SETTING_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
boolean
Return whether this view dispatcher corresponds to a singleton instance.protected String
resolveViewName
(DispatchRule dispatchRule, Activity activity) void
setContentType
(String contentType) void
Sets the prefix for the template name.void
Sets the suffix for the template name.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aspectran.core.activity.response.dispatch.ViewDispatcher
dispatch
-
Constructor Details
-
AbstractViewDispatcher
public AbstractViewDispatcher()
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfaceViewDispatcher
-
setContentType
-
getPrefix
-
setPrefix
Sets the prefix for the template name.- Parameters:
prefix
- the new prefix for the template name
-
getSuffix
-
setSuffix
Sets the suffix for the template name.- Parameters:
suffix
- the new suffix for the template name
-
isSingleton
public boolean isSingleton()Description copied from interface:ViewDispatcher
Return whether this view dispatcher corresponds to a singleton instance.- Specified by:
isSingleton
in interfaceViewDispatcher
- Returns:
- whether this view dispatcher corresponds to a singleton instance
-
resolveViewName
-
toString
-