package com.vci.ubcs.code.Scheduling;
|
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.context.request.RequestAttributes;
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
/**
|
* @author Vigi
|
*/
|
@Slf4j
|
public class NonWebRequestAttributes implements RequestAttributes {
|
|
@Override
|
public Object getAttribute(String name, int scope) {
|
return null;
|
}
|
|
@Override
|
public void setAttribute(String name, Object value, int scope) {
|
// to do nothing
|
}
|
|
@Override
|
public void removeAttribute(String name, int scope) {
|
// to do nothing
|
}
|
|
@Override
|
public String[] getAttributeNames(int scope) {
|
return new String[0];
|
}
|
|
@Override
|
public void registerDestructionCallback(String name, Runnable callback, int scope) {
|
// to do nothing
|
}
|
|
@Override
|
public Object resolveReference(String key) {
|
return null;
|
}
|
|
@Override
|
public String getSessionId() {
|
return null;
|
}
|
|
@Override
|
public Object getSessionMutex() {
|
return null;
|
}
|
}
|