public class ThreadLocalServletInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
Constructor and Description |
---|
ThreadLocalServletInterceptor() |
Modifier and Type | Method and Description |
---|---|
String |
getRequestThreadLocalKey() |
String |
getResponseThreadLocalKey() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
setRequestThreadLocalKey(String requestThreadLocalKey) |
void |
setResponseThreadLocalKey(String responseThreadLocalKey) |
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
public String getRequestThreadLocalKey()
ThreadLocalManager.bindResource(String, Object)
.public void setRequestThreadLocalKey(String requestThreadLocalKey)
requestThreadLocalKey
- The key under which the servlet request is bound to
the current thread using
ThreadLocalManager.bindResource(String, Object)
to set.
if null
, the servlet request will not be bound to the current
thread.public String getResponseThreadLocalKey()
ThreadLocalManager.bindResource(String, Object)
.public void setResponseThreadLocalKey(String responseThreadLocalKey)
responseThreadLocalKey
- The key under which the servlet response is bound to
the current thread using
ThreadLocalManager.bindResource(String, Object)
to set.
if null
, the servlet response will not be bound to the current
thread.Copyright © 2016 Clazzes.org. All rights reserved.