git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/authorization-common-library@117184 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7da0346582
commit
cb25f11f3d
|
@ -24,13 +24,13 @@ public class AuthorizationProvider {
|
|||
|
||||
public UserInfo get(){
|
||||
UserInfo info = threadAuth.get();
|
||||
logger.info("getting "+info+" in thread "+Thread.currentThread().getId() );
|
||||
logger.trace("getting "+info+" in thread "+Thread.currentThread().getId() );
|
||||
return info;
|
||||
}
|
||||
|
||||
public void set(UserInfo authorizationToken){
|
||||
threadAuth.set(authorizationToken);
|
||||
logger.info("setting "+authorizationToken+" in thread "+Thread.currentThread().getId() );
|
||||
logger.trace("setting "+authorizationToken+" in thread "+Thread.currentThread().getId() );
|
||||
}
|
||||
|
||||
public void reset(){
|
||||
|
|
|
@ -23,13 +23,13 @@ public static CalledMethodProvider instance = new CalledMethodProvider();
|
|||
|
||||
public String get(){
|
||||
String calledMethod = threadMethod.get();
|
||||
logger.info("getting "+calledMethod+" in thread "+Thread.currentThread().getId() );
|
||||
logger.trace("getting calledMethod as "+calledMethod+" in thread "+Thread.currentThread().getId() );
|
||||
return calledMethod;
|
||||
}
|
||||
|
||||
public void set(String calledMethod){
|
||||
threadMethod.set(calledMethod);
|
||||
logger.info("setting "+calledMethod+" in thread "+Thread.currentThread().getId() );
|
||||
logger.trace("setting calledMethod as "+calledMethod+" in thread "+Thread.currentThread().getId() );
|
||||
}
|
||||
|
||||
public void reset(){
|
||||
|
|
Loading…
Reference in New Issue