implemented Ordered interface

This commit is contained in:
Vishal Puri 2007-05-17 12:21:02 +00:00
parent 001dc0b1d9
commit e43439ba44
1 changed files with 14 additions and 4 deletions

View File

@ -15,8 +15,6 @@
package org.acegisecurity; package org.acegisecurity;
import org.acegisecurity.ui.AuthenticationEntryPoint;
import java.io.IOException; import java.io.IOException;
import javax.servlet.ServletException; import javax.servlet.ServletException;
@ -25,6 +23,9 @@ import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.acegisecurity.ui.AuthenticationEntryPoint;
import org.springframework.core.Ordered;
/** /**
* Performs a HTTP redirect to the constructor-indicated URL. * Performs a HTTP redirect to the constructor-indicated URL.
@ -32,14 +33,23 @@ import javax.servlet.http.HttpServletResponse;
* @author Ben Alex * @author Ben Alex
* @version $Id$ * @version $Id$
*/ */
public class MockAuthenticationEntryPoint implements AuthenticationEntryPoint { public class MockAuthenticationEntryPoint implements AuthenticationEntryPoint, Ordered {
//~ Instance fields ================================================================================================ //~ Instance fields ================================================================================================
private String url; private String url;
private int order = Integer.MAX_VALUE; // ~ default
//~ Constructors =================================================================================================== //~ 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; this.url = url;
} }