Class PlayerRegistrationHandlerInterceptor
java.lang.Object
net.andresbustamante.yafoot.core.web.util.PlayerRegistrationHandlerInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor
public class PlayerRegistrationHandlerInterceptor
extends Object
implements org.springframework.web.servlet.HandlerInterceptor
Intercepts every http call to check if the player is already registered. Otherwise, it will create the player
using the authenticated principal data.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerRegistrationHandlerInterceptor
(PlayerManagementService playerManagementService, PlayerSearchService playerSearchService) Public constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.HandlerInterceptor
afterCompletion, postHandle
-
Constructor Details
-
PlayerRegistrationHandlerInterceptor
public PlayerRegistrationHandlerInterceptor(PlayerManagementService playerManagementService, PlayerSearchService playerSearchService) Public constructor.- Parameters:
playerManagementService
-playerSearchService
-
-
-
Method Details