public class DispatcherFactory {
public static final XSRFToken xsrf = new XSRFToken();
public FilterawareDispatcher xsrfProtectionDispatcher(){
DispatcherFilter xsrfDispatcherFilter = new XSRFTokenDispatcherFilter(xsrf);
CallbackFilter xsrfCallbackFilter = new XSRFTokenCallbackFilter(xsrf);
CallbackFactory callbackFactory = new DefaultCallbackFactory(xsrfCallbackFilter);
DispatcherFilter defaultDispatcherFilter = new DefaultDispatcherFilter(callbackFactory);