From e43439ba446e97bfeb18faff8a740d4f7de8bf8d Mon Sep 17 00:00:00 2001 From: Vishal Puri Date: Thu, 17 May 2007 12:21:02 +0000 Subject: [PATCH] implemented Ordered interface --- .../MockAuthenticationEntryPoint.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/core/src/test/java/org/acegisecurity/MockAuthenticationEntryPoint.java b/core/src/test/java/org/acegisecurity/MockAuthenticationEntryPoint.java index 04f2481a3b..d39f68078a 100644 --- a/core/src/test/java/org/acegisecurity/MockAuthenticationEntryPoint.java +++ b/core/src/test/java/org/acegisecurity/MockAuthenticationEntryPoint.java @@ -15,8 +15,6 @@ package org.acegisecurity; -import org.acegisecurity.ui.AuthenticationEntryPoint; - import java.io.IOException; import javax.servlet.ServletException; @@ -25,6 +23,9 @@ import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.acegisecurity.ui.AuthenticationEntryPoint; +import org.springframework.core.Ordered; + /** * Performs a HTTP redirect to the constructor-indicated URL. @@ -32,14 +33,23 @@ import javax.servlet.http.HttpServletResponse; * @author Ben Alex * @version $Id$ */ -public class MockAuthenticationEntryPoint implements AuthenticationEntryPoint { +public class MockAuthenticationEntryPoint implements AuthenticationEntryPoint, Ordered { //~ Instance fields ================================================================================================ private String url; + private int order = Integer.MAX_VALUE; // ~ default //~ Constructors =================================================================================================== - public MockAuthenticationEntryPoint(String url) { + public int getOrder() { + return order; + } + + public void setOrder(int order) { + this.order = order; + } + + public MockAuthenticationEntryPoint(String url) { this.url = url; }