Interface AvalonInterceptorContext
- All Known Implementing Classes:
AvalonInterceptorContextImpl
public interface AvalonInterceptorContext
Contains context information for the interceptors being invoked. The
class contains a request context which allows to store data from within an
interceptor. It also provides access to a ThreadLocalStorage to associate
data with the current thread.
- Author:
- Siegfried Goeschl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the transaction id for the current thread.void
Decrement the current service invocation depthObject[]
getArgs()
int
Get the current service invocation depthboolean
void
Increment the current service invocation depthvoid
setTransactionId
(Object transactionId) Set the transaction id for the current thread.
-
Method Details
-
getRequestContext
- Returns:
- Returns the context for the given request.
-
getServiceDelegate
Object getServiceDelegate()- Returns:
- Returns the serviceDelegate.
-
getServiceName
String getServiceName()- Returns:
- Returns the serviceName.
-
getServiceShorthand
String getServiceShorthand()- Returns:
- Returns the serviceShorthand.
-
getArgs
Object[] getArgs()- Returns:
- Returns the args.
-
getMethod
Method getMethod()- Returns:
- Returns the method.
-
getThreadContext
ThreadLocalStorage getThreadContext()- Returns:
- Returns the ThreadLocalStorage
-
hasTransactionId
boolean hasTransactionId()- Returns:
- is a transaction id defined for the current thread
-
getTransactionId
Object getTransactionId()- Returns:
- get the transaction id defined for the current thread
-
setTransactionId
Set the transaction id for the current thread.- Parameters:
transactionId
- the transaction id
-
clearTransactionId
void clearTransactionId()Clears the transaction id for the current thread. -
incrementInvocationDepth
void incrementInvocationDepth()Increment the current service invocation depth -
decrementInvocationDepth
void decrementInvocationDepth()Decrement the current service invocation depth -
getInvocationDepth
int getInvocationDepth()Get the current service invocation depth- Returns:
- the current service invocation depth
-
getInvocationId
Long getInvocationId()- Returns:
- Returns the invocationId.
-