Skip to content

Commit

Permalink
updated deprecation: HandlerInterceptorAdapter class -> HandlerInterc…
Browse files Browse the repository at this point in the history
…eptor interface
  • Loading branch information
rozagerardo committed Jan 20, 2021
1 parent ab62e83 commit e350b10
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package com.baeldung.loginredirect;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.http.HttpStatus;
import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.util.UrlPathHelper;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

class LoginPageInterceptor extends HandlerInterceptorAdapter {
class LoginPageInterceptor implements HandlerInterceptor {

@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {
Expand Down

0 comments on commit e350b10

Please sign in to comment.