Class JspFragmentHelper

java.lang.Object
javax.servlet.jsp.tagext.JspFragment
org.apache.sling.scripting.jsp.jasper.runtime.JspFragmentHelper

public abstract class JspFragmentHelper extends javax.servlet.jsp.tagext.JspFragment
Helper class from which all Jsp Fragment helper classes extend. This class allows for the emulation of numerous fragments within a single class, which in turn reduces the load on the class loader since there are potentially many JspFragments in a single page.

The class also provides various utility methods for JspFragment implementations.

Author:
Mark Roth
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected javax.servlet.jsp.PageContext
     
    protected int
     
    protected javax.servlet.jsp.JspContext
     
    protected javax.servlet.jsp.tagext.JspTag
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JspFragmentHelper(int discriminator, javax.servlet.jsp.JspContext jspContext, javax.servlet.jsp.tagext.JspTag parentTag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.servlet.jsp.JspContext
     
    javax.servlet.jsp.tagext.JspTag
     

    Methods inherited from class javax.servlet.jsp.tagext.JspFragment

    invoke

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • discriminator

      protected int discriminator
    • jspContext

      protected javax.servlet.jsp.JspContext jspContext
    • _jspx_page_context

      protected javax.servlet.jsp.PageContext _jspx_page_context
    • parentTag

      protected javax.servlet.jsp.tagext.JspTag parentTag
  • Constructor Details

    • JspFragmentHelper

      public JspFragmentHelper(int discriminator, javax.servlet.jsp.JspContext jspContext, javax.servlet.jsp.tagext.JspTag parentTag)
  • Method Details

    • getJspContext

      public javax.servlet.jsp.JspContext getJspContext()
      Specified by:
      getJspContext in class javax.servlet.jsp.tagext.JspFragment
    • getParentTag

      public javax.servlet.jsp.tagext.JspTag getParentTag()