public class LogContextTree extends AbstractProfileAction
ProfileRequestContext.
You can contextualize the logging of the context tree either by setting setDescription(String),
or more usefully by using an attribute on the specific action expression as below. This allows using
just one declaration of the action bean, but parameterized differently depending on where it is placed.
<evaluate expression="LogContextTree">
<attribute name="contextTreeDescription" value="My Description" />
</evaluate>
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIB_DESC
Name of Spring web flow attribute holding the description of the tree to log.
|
private String |
description
Contextual description to output at the start of the action.
|
private org.slf4j.Logger |
log
Logger.
|
| Constructor and Description |
|---|
LogContextTree() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
private String |
getIndent(int indent)
Generate the leading indent string to print.
|
private void |
logContext(org.opensaml.messaging.context.BaseContext current,
int indent)
Recursively log the context tree.
|
void |
setDescription(String value)
Set the contextual description to output at the start of the action.
|
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategydoPreExecute, getActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitializedpublic static final String ATTRIB_DESC
private org.slf4j.Logger log
private String description
public void setDescription(@Nullable String value)
value - the description valueprotected void doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionprivate void logContext(org.opensaml.messaging.context.BaseContext current,
int indent)
current - the current context to logindent - the amount of leading indentprivate String getIndent(int indent)
indent - the amount of the indentCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.