org.apache.taglibs.log
Class LoggerTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.log.LoggerTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- DebugTag, ErrorTag, FatalTag, InfoTag, WarnTag
- public abstract class LoggerTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
Abstract base class for the logging tags which log a message to a
commons.logging category.
- Author:
- Joseph Ottinger, James Strachan
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
Method Summary |
int |
doAfterBody()
|
int |
doStartTag()
|
protected org.apache.commons.logging.Log |
getLoggingCategory()
|
protected abstract boolean |
isEnabled(org.apache.commons.logging.Log logCategory)
|
protected abstract void |
log(org.apache.commons.logging.Log logCategory,
java.lang.String message)
|
void |
setCategory(java.lang.String category)
|
void |
setMessage(java.lang.String message)
|
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
LoggerTag
public LoggerTag()
setCategory
public void setCategory(java.lang.String category)
setMessage
public void setMessage(java.lang.String message)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
isEnabled
protected abstract boolean isEnabled(org.apache.commons.logging.Log logCategory)
log
protected abstract void log(org.apache.commons.logging.Log logCategory,
java.lang.String message)
getLoggingCategory
protected org.apache.commons.logging.Log getLoggingCategory()
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.