Package com.aspectran.pebble.view
Class PebbleViewDispatcher
- java.lang.Object
-
- com.aspectran.pebble.view.PebbleViewDispatcher
-
- All Implemented Interfaces:
ViewDispatcher
public class PebbleViewDispatcher extends java.lang.Object implements ViewDispatcher
The Class PebbleViewDispatcher.Created: 2016. 1. 27.
- Since:
- 2.0.0
-
-
Field Summary
-
Fields inherited from interface com.aspectran.core.activity.response.dispatch.ViewDispatcher
VIEW_DISPATCHER_SETTING_NAME
-
-
Constructor Summary
Constructors Constructor Description PebbleViewDispatcher(com.mitchellbosecke.pebble.PebbleEngine pebbleEngine)
-
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)voidsetPrefix(java.lang.String prefix)Sets the prefix for the template name.voidsetSuffix(java.lang.String suffix)Sets the suffix for the template name.
-
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein interfaceViewDispatcher
-
setContentType
public void setContentType(java.lang.String contentType)
-
setPrefix
public void setPrefix(java.lang.String prefix)
Sets the prefix for the template name.- Parameters:
prefix- the new prefix for the template name
-
setSuffix
public void setSuffix(java.lang.String suffix)
Sets the suffix for the template name.- Parameters:
suffix- the new suffix for the template name
-
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
-
-