public class RolesInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
| Constructor and Description |
|---|
RolesInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
isAuthorized(ArrayList<Map.Entry<Pattern,Set<String>>> RULED_METHODS,
String method,
String requestUri,
Collection<String> grantedRoles) |
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
void |
setRuledMethods(Collection<Map.Entry<String,Collection<String>>> ruledMethods) |
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler)
throws Exception
preHandle in interface org.springframework.web.servlet.HandlerInterceptorpreHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapterExceptionprotected static boolean isAuthorized(ArrayList<Map.Entry<Pattern,Set<String>>> RULED_METHODS, String method, String requestUri, Collection<String> grantedRoles)
public void setRuledMethods(Collection<Map.Entry<String,Collection<String>>> ruledMethods)
Copyright © 2013. All Rights Reserved.