2013/10/10 Steven Benitez <steven.beni...@gmail.com>:
> Yeah, I'm not a fan of the Judge name either. Guard is better, but I'm not
> sure if it's best. What would the API look like?

Not sure yet, something like this:

public class SecurityGate {

    private List<SecurityGuard> guards;

    public void check(HttpServletRequest) {
        for(SecurityGuard guard : guards) {
           SecurityPass pass = guard.accept(HttpServletRequest);
           if (pass.notAccepted()) {
               throw new StrutsSecurityException(pass.getGuardMessage())
          }
        }
    }

}


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to