ACEGI @ ExceptionTranslationFilter

the ExceptionTranslationFilter is live for the filterInvocationInterceptor ,in my opinion.it will catch the exception from filterInvocationInterceptor then redrect the request to the defined url
 <bean id="exceptionTranslationFilter"
          class="org.acegisecurity.ui.ExceptionTranslationFilter">
        <property name="authenticationEntryPoint">
            <bean
                    class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">
                <property name="loginFormUrl" value="/acegilogin.jsp"/>
                <property name="forceHttps" value="false"/>
            </bean>
        </property>
        <property name="accessDeniedHandler">
            <bean
                    class="org.acegisecurity.ui.AccessDeniedHandlerImpl">
                <property name="errorPage" value="/accessDenied.jsp"/>
            </bean>
        </property>
    </bean>

accessDeniedHandler solves the AccessDeniedException and
authenticationEntryPoint solves any other exceptions.

你可能感兴趣的:(Acegi)