public class TransactionLoggingInterceptor extends Interceptor
Manageable.State
BOOTSTRAPPED, BOOTSTRAPPING, DEINITIALIZING, INITIALIZING, UNUSABLE, USABLE
Constructor and Description |
---|
TransactionLoggingInterceptor() |
Modifier and Type | Method and Description |
---|---|
FunctionResult |
afterFunctionCall(FunctionRequest functionRequest,
FunctionResult xinsResult,
HttpServletResponse httpResponse) |
HttpServletRequest |
beginRequest(HttpServletRequest request) |
protected void |
logTransaction(FunctionRequest request,
FunctionResult result)
Logs the specified transaction.
|
afterCallingConvention, beforeCallingConvention, beforeFunctionCall, endRequest, getApi
assertUsable, bootstrap, bootstrapImpl, deinit, deinitImpl, getState, init, initImpl, isBootstrapped, isUsable
public HttpServletRequest beginRequest(HttpServletRequest request)
beginRequest
in class Interceptor
public FunctionResult afterFunctionCall(FunctionRequest functionRequest, FunctionResult xinsResult, HttpServletResponse httpResponse)
afterFunctionCall
in class Interceptor
protected void logTransaction(FunctionRequest request, FunctionResult result) throws NullPointerException
request
- the FunctionRequest
, should not be null
.result
- the FunctionResult
, should not be null
.NullPointerException
- if request == null || result == null
.See http://www.xins.org/.