Modifier and Type | Field and Description |
---|---|
protected ApplicationEventPublisher |
eventPublisher |
protected LogoutHandler |
logoutHandler |
Constructor and Description |
---|
LogoutController(LogoutHandler logoutHandler,
ApplicationEventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
index(HttpRequest<?> request,
Authentication authentication) |
protected final LogoutHandler logoutHandler
protected final ApplicationEventPublisher eventPublisher
public LogoutController(@Nullable LogoutHandler logoutHandler, ApplicationEventPublisher eventPublisher)
logoutHandler
- A collaborator which helps to build HTTP response if user logout.eventPublisher
- The application event publisher@Consumes(value={"application/x-www-form-urlencoded","application/json"}) @Post public HttpResponse index(HttpRequest<?> request, Authentication authentication)
request
- The HttpRequest
being executedauthentication
- Authentication
instance for current user