List of usage examples for org.apache.shiro.web.filter.authc AuthenticationFilter getSuccessUrl
public String getSuccessUrl()
From source file:com.centfor.frame.shiro.FrameShiroFilterFactoryBean.java
License:Apache License
private void applySuccessUrlIfNecessary(Filter filter) { String successUrl = getSuccessUrl(); if (StringUtils.hasText(successUrl) && (filter instanceof AuthenticationFilter)) { AuthenticationFilter authcFilter = (AuthenticationFilter) filter; //only apply the successUrl if they haven't explicitly configured one already: String existingSuccessUrl = authcFilter.getSuccessUrl(); if (AuthenticationFilter.DEFAULT_SUCCESS_URL.equals(existingSuccessUrl)) { authcFilter.setSuccessUrl(successUrl); }//from w w w . j a va 2 s. co m } }