public static LoginToContinue eval(LoginToContinue in) { if (!hasAnyELExpression(in)) { return in; } try { LoginToContinueAnnotationLiteral out = new LoginToContinueAnnotationLiteral( evalImmediate(in.loginPage()), evalImmediate(in.useForwardToLoginExpression(), in.useForwardToLogin()), emptyIfImmediate(in.useForwardToLoginExpression()), evalImmediate(in.errorPage()) ); out.setHasDeferredExpressions(hasAnyELExpression(out)); return out; } catch (Throwable t) { t.printStackTrace(); throw t; } }
public static boolean hasAnyELExpression(LoginToContinue in) { return AnnotationELPProcessor.hasAnyELExpression( in.loginPage(), in.errorPage(), in.useForwardToLoginExpression() ); }
if (loginToContinueAnnotation.useForwardToLogin()) { return httpMessageContext.forward( loginToContinueAnnotation.loginPage()); } else { return httpMessageContext.redirect( getBaseURL(request) + loginToContinueAnnotation.loginPage()); String errorPage = getLoginToContinueAnnotation(invocationContext).errorPage();
@LoginToContinue // Redirects to form page if protected resource and not-logged in @Typed(CustomFormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism public class CustomFormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
public static boolean hasAnyELExpression(LoginToContinue in) { return AnnotationELPProcessor.hasAnyELExpression( in.loginPage(), in.errorPage(), in.useForwardToLoginExpression() ); }
if (loginToContinueAnnotation.useForwardToLogin()) { return httpMessageContext.forward( loginToContinueAnnotation.loginPage()); } else { return httpMessageContext.redirect( getBaseURL(request) + loginToContinueAnnotation.loginPage()); String errorPage = getLoginToContinueAnnotation(invocationContext).errorPage();
@LoginToContinue // Redirects to form page if protected resource and not-logged in @Typed(CustomFormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism public class CustomFormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
public static LoginToContinue eval(LoginToContinue in) { if (!hasAnyELExpression(in)) { return in; } try { LoginToContinueAnnotationLiteral out = new LoginToContinueAnnotationLiteral( evalImmediate(in.loginPage()), evalImmediate(in.useForwardToLoginExpression(), in.useForwardToLogin()), emptyIfImmediate(in.useForwardToLoginExpression()), evalImmediate(in.errorPage()) ); out.setHasDeferredExpressions(hasAnyELExpression(out)); return out; } catch (Throwable t) { t.printStackTrace(); throw t; } }
@LoginToContinue // Redirects to form page if protected resource and not-logged in @Typed(FormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism public class FormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
@LoginToContinue // Redirects to form page if protected resource and not-logged in @Typed(FormAuthenticationMechanism.class) // Omit HttpAuthenticationMechanism type so it won't qualify directly as mechanism public class FormAuthenticationMechanism implements HttpAuthenticationMechanism, LoginToContinueHolder {
@Interceptor @LoginToContinue @Priority(PLATFORM_BEFORE + 220) public class LoginToContinueInterceptor implements Serializable {
@Interceptor @LoginToContinue @Priority(PLATFORM_BEFORE + 220) public class LoginToContinueInterceptor implements Serializable {