|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.scripting.jsp.util.TagUtil
public final class TagUtil
The TagUtil
class provides a series of utility methods which
may be used by tag library implementations to access Component API specific
objects and do other processing.
Method Summary | |
---|---|
static SlingHttpServletRequest |
getRequest(javax.servlet.jsp.PageContext pageContext)
|
static SlingHttpServletResponse |
getResponse(javax.servlet.jsp.PageContext pageContext)
|
static Throwable |
getRootCause(javax.servlet.ServletException e)
Unwrap a component exception to get the true root cause of an exception |
static void |
log(org.slf4j.Logger log,
javax.servlet.jsp.PageContext pageContext,
String message,
Throwable t)
Log an INFO message to the given logger with context information from the pageContext . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void log(org.slf4j.Logger log, javax.servlet.jsp.PageContext pageContext, String message, Throwable t)
pageContext
.
log
- The SLF4J Logger
to use for writing the message.pageContext
- The JSP page context providing contextual information
for the log message.message
- The message to log. If this is null
, the
message of the exception is taken, unless the expression is alos
null
, in which case this method just logs nothing.t
- The exception to be logged alongside the message. This may
be null
. If this is a ServletException
it
is unwrapped by the getRootCause(ServletException)
method
before being used.public static Throwable getRootCause(javax.servlet.ServletException e)
public static SlingHttpServletRequest getRequest(javax.servlet.jsp.PageContext pageContext)
public static SlingHttpServletResponse getResponse(javax.servlet.jsp.PageContext pageContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |