|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.acsinet_solutions.cetia4.tags.support.LogTagSupport
public abstract class LogTagSupport
Extension of TagSupport that includes exception handling, log handling, DynamicAttributes handling, and special convenience methods. Used for empty tags.
| Field Summary |
|---|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
LogTagSupport()
|
|
| Method Summary | |
|---|---|
void |
doCatch(java.lang.Throwable throwable)
Prints error so it's easier to find. |
int |
doEndTag()
|
void |
doFinally()
|
protected void |
fillDynamicValues(org.apache.ecs.ElementAttributes tag)
Fill all dynamic attributes on the given ECS generic tag. |
protected void |
fillDynamicValues(javax.servlet.jsp.JspWriter writer)
Fill all dynamic attributes on JSP writer. |
protected Configuration |
getConfiguration()
Shortcut for the application-wide configuration object. |
protected java.util.Map<java.lang.String,java.lang.String> |
getDynamicAttributes()
Return the dynamic attributes for this class as a not null, maybe empty map. |
protected java.util.Locale |
getLocale()
Get the locale configured for the current application. |
protected org.apache.commons.logging.Log |
getLogger()
Return the internal logger |
protected java.lang.String |
getPortalPath()
Get the portal path if configured, or the context path if not. |
protected javax.servlet.http.HttpServletRequest |
getRequest()
Convenience method |
protected javax.servlet.ServletContext |
getServletContext()
Convenience method |
protected javax.servlet.http.HttpSession |
getSession()
Convenience method |
void |
setDynamicAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.Object value)
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogTagSupport()
| Method Detail |
|---|
public void doCatch(java.lang.Throwable throwable)
throws java.lang.Throwable
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyjava.lang.Throwablepublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public void setDynamicAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.Object value)
throws javax.servlet.jsp.JspException
setDynamicAttribute in interface javax.servlet.jsp.tagext.DynamicAttributesjavax.servlet.jsp.JspExceptionprotected final java.util.Map<java.lang.String,java.lang.String> getDynamicAttributes()
protected final void fillDynamicValues(org.apache.ecs.ElementAttributes tag)
protected final void fillDynamicValues(javax.servlet.jsp.JspWriter writer)
throws java.io.IOException
java.io.IOExceptionprotected final java.util.Locale getLocale()
protected final javax.servlet.ServletContext getServletContext()
protected final javax.servlet.http.HttpServletRequest getRequest()
protected final javax.servlet.http.HttpSession getSession()
protected final org.apache.commons.logging.Log getLogger()
protected final java.lang.String getPortalPath()
ControllerTools.getPortalPath(ServletContext,HttpServletRequest)protected final Configuration getConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||