public abstract class OpenmrsRequestContextAwareBodyTag
extends javax.servlet.jsp.tagext.BodyTagSupport
RequestContextAwareTag
, but intended to support tag body handling on the basis of functionalities,
provided by JSTL BodyTagSupport
. Actually, it inherits additional convenience methods including getter methods for the
bodyContent property and methods to get at the previous out JspWriter
. May be considered as base class for all tags that
require a RequestContext
and aware on processing of tag body content.
With use of a RequestContext
instance, you can get easy access to current state like the web application context,
locale and so on.
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses
|
Constructor and Description |
---|
OpenmrsRequestContextAwareBodyTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
After tag body has been evaluated and buffered this creates and exposes the current RequestContext.
|
protected abstract int |
doEndTagInternal()
Called by doEndTag to perform the actual work.
|
int |
doStartTag() |
protected org.springframework.web.servlet.support.RequestContext |
getRequestContext()
Return the current RequestContext.
|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected final org.apache.commons.logging.Log logger
public final int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
BodyTagSupport.doStartTag()
public final int doEndTag() throws javax.servlet.jsp.JspException
doEndTagInternal()
for actual work.doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
protected final org.springframework.web.servlet.support.RequestContext getRequestContext()
protected abstract int doEndTagInternal() throws Exception
Exception
- any exception, any checked one other than a JspException gets wrapped in a JspException by doEndTagTagSupport.doEndTag()
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.