Class AbstractViewDispatcher

java.lang.Object
com.aspectran.core.activity.response.dispatch.AbstractViewDispatcher
All Implemented Interfaces:
ViewDispatcher
Direct Known Subclasses:
FreeMarkerViewDispatcher, JspTemplateViewDispatcher, JspViewDispatcher, PebbleViewDispatcher, ThymeleafViewDispatcher

public abstract class AbstractViewDispatcher extends Object implements ViewDispatcher
  • Constructor Details

    • AbstractViewDispatcher

      public AbstractViewDispatcher()
  • Method Details

    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface ViewDispatcher
    • setContentType

      public void setContentType(String contentType)
    • getPrefix

      protected String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
      Sets the prefix for the template name.
      Parameters:
      prefix - the new prefix for the template name
    • getSuffix

      protected String getSuffix()
    • setSuffix

      public void setSuffix(String suffix)
      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 interface ViewDispatcher
      Returns:
      whether this view dispatcher corresponds to a singleton instance
    • resolveViewName

      @NonNull protected String resolveViewName(@NonNull DispatchRule dispatchRule, Activity activity)
    • toString

      public String toString()
      Overrides:
      toString in class Object