From 6b4455d15eecac2eb488e77aaf5a2d60169af76c Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 5 Jul 2010 07:12:16 +0000 Subject: [PATCH] readded deprecated methods to keep API git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2068 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../security/ConstraintSecurityHandler.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java index ca2f3c41908..3996a0df6e0 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java @@ -14,6 +14,7 @@ package org.eclipse.jetty.security; import java.io.IOException; +import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.List; @@ -90,7 +91,14 @@ public class ConstraintSecurityHandler extends SecurityHandler implements Constr { return _roles; } - + + /* ------------------------------------------------------------ */ + @Deprecated + public void setConstraintMappings(ConstraintMapping[] constraintMappings) + { + setConstraintMappings(Arrays.asList(constraintMappings),null); + } + /* ------------------------------------------------------------ */ /** * Process the constraints following the combining rules in Servlet 3.0 EA @@ -104,7 +112,15 @@ public class ConstraintSecurityHandler extends SecurityHandler implements Constr { setConstraintMappings(constraintMappings,null); } - + + + /* ------------------------------------------------------------ */ + @Deprecated + public void setConstraintMappings(ConstraintMapping[] constraintMappings, Set roles) + { + setConstraintMappings(Arrays.asList(constraintMappings),roles); + } + /* ------------------------------------------------------------ */ /** * Process the constraints following the combining rules in Servlet 3.0 EA