Class PebbleViewDispatcher

  • All Implemented Interfaces:
    com.aspectran.core.activity.response.dispatch.ViewDispatcher

    public class PebbleViewDispatcher
    extends java.lang.Object
    implements com.aspectran.core.activity.response.dispatch.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
      void dispatch​(com.aspectran.core.activity.Activity activity, com.aspectran.core.context.rule.DispatchRule dispatchRule)  
      java.lang.String getContentType()  
      boolean isSingleton()  
      void setContentType​(java.lang.String contentType)  
      void setPrefix​(java.lang.String prefix)
      Sets the prefix for the template name.
      void setSuffix​(java.lang.String suffix)
      Sets the suffix for the template name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PebbleViewDispatcher

        public PebbleViewDispatcher​(com.mitchellbosecke.pebble.PebbleEngine pebbleEngine)
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface com.aspectran.core.activity.response.dispatch.ViewDispatcher
      • 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​(com.aspectran.core.activity.Activity activity,
                             com.aspectran.core.context.rule.DispatchRule dispatchRule)
                      throws com.aspectran.core.activity.response.dispatch.ViewDispatcherException
        Specified by:
        dispatch in interface com.aspectran.core.activity.response.dispatch.ViewDispatcher
        Throws:
        com.aspectran.core.activity.response.dispatch.ViewDispatcherException
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface com.aspectran.core.activity.response.dispatch.ViewDispatcher