|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wgen.op.logging.TraceTrigger
| Field Summary | |
private java.lang.String |
_loggerPath
|
static java.lang.String |
DEFAULT_TRIGGER_PARAM
|
static java.lang.String |
INIT_PARAM_LOGGER_PATH
|
static java.lang.String |
INIT_PARAM_TRIGGER_PARAM
|
private static org.apache.log4j.Logger |
LOG
|
static java.lang.String |
REQUEST_ATTRIB__TRACE_OUTPUT
|
static java.lang.String |
REQUEST_ATTRIB__TRACE_STATE
|
static java.lang.String |
SESSION_ATTRIB__REDIRECT_TRACE
|
static java.lang.String |
VALUE_OFF
|
static java.lang.String |
VALUE_ON
|
| Constructor Summary | |
TraceTrigger()
|
|
| Method Summary | |
static boolean |
applyTraceToJSONObject(TraceKey traceKey,
TraceState traceState,
org.json.JSONObject responseObj)
Applies the captured trace to the JSONObject so that ajax requests can pass traces back down to the client even though the page is not bein redrawn. |
static void |
applyTraceToRedirect(javax.servlet.http.HttpServletRequest request)
Capture the trace to a String and temporarily store it in the session for retrieval by a subsequent redirected request. |
static void |
applyTraceToRequest(javax.servlet.http.HttpServletRequest request)
Capture the trace to a String and put it in the output, either in __trace__ in the request attributes, or in the case of an ajax call with a JSONObject output, in a __trace__ member of the returned JSONObject. |
void |
handleFilterCompletion(ParamTrigger trigger,
ParamTriggerState triggerState,
javax.servlet.http.HttpServletRequest request)
Finish the behavior after the body of the Action is executed, but before returning to the client. |
void |
handleTriggerValue(ParamTrigger trigger,
java.lang.String parameterName,
java.lang.Object value,
ParamTriggerState triggerState)
Handles a trigger fire. |
void |
registerTriggersInFilter(ParamTriggerFilter filter)
Register triggers in the filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final org.apache.log4j.Logger LOG
public static final java.lang.String REQUEST_ATTRIB__TRACE_OUTPUT
public static final java.lang.String REQUEST_ATTRIB__TRACE_STATE
public static final java.lang.String SESSION_ATTRIB__REDIRECT_TRACE
public static final java.lang.String INIT_PARAM_LOGGER_PATH
public static final java.lang.String INIT_PARAM_TRIGGER_PARAM
public static final java.lang.String DEFAULT_TRIGGER_PARAM
public static final java.lang.String VALUE_ON
public static final java.lang.String VALUE_OFF
private java.lang.String _loggerPath
| Constructor Detail |
public TraceTrigger()
| Method Detail |
public void registerTriggersInFilter(ParamTriggerFilter filter)
registerTriggersInFilter in interface TriggerInitializerfilter - the filter object in which the triggers should be registered.
public void handleTriggerValue(ParamTrigger trigger,
java.lang.String parameterName,
java.lang.Object value,
ParamTriggerState triggerState)
handleTriggerValue in interface ParamTriggerListenertrigger - the trigger that firedparameterName - the trigger parameterName that caused the trigger to firevalue - the value of the triggertriggerState - the traceKey identifying the request that caused the trigger to fire
public void handleFilterCompletion(ParamTrigger trigger,
ParamTriggerState triggerState,
javax.servlet.http.HttpServletRequest request)
handleFilterCompletion in interface ParamTriggerListenertrigger - triggerState - request - public static void applyTraceToRequest(javax.servlet.http.HttpServletRequest request)
request - public static void applyTraceToRedirect(javax.servlet.http.HttpServletRequest request)
request -
public static boolean applyTraceToJSONObject(TraceKey traceKey,
TraceState traceState,
org.json.JSONObject responseObj)
traceKey - the traceKeytraceState - the filter state being evaluatedresponseObj - a non-null JSONObject response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||