From 4dd6536e1be0ef6b2d778b746a83c52db8bda7ba Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 20 Jul 2010 00:46:54 +0000 Subject: [PATCH] 320073 readded role getter/setters git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2156 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../org/eclipse/jetty/servlet/ServletHolder.java | 13 ++++++++++++- .../src/test/java/org/eclipse/jetty/TestServer.java | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java index fe684d16904..abb63424f5a 100644 --- a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java +++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletHolder.java @@ -478,6 +478,18 @@ public class ServletHolder extends Holder implements UserIdentity.Scope return _roleMap; } + /* ------------------------------------------------------------ */ + public String getRunAsRole() + { + return _runAsRole; + } + + /* ------------------------------------------------------------ */ + public void setRunAsRole(String role) + { + _runAsRole = role; + } + /* ------------------------------------------------------------ */ /** Service a request with this servlet. */ @@ -614,7 +626,6 @@ public class ServletHolder extends Holder implements UserIdentity.Scope { return ServletHolder.this.getInitOrder(); } - public void setRunAsRole(String role) { diff --git a/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java b/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java index a1f91863564..d011e25ac6f 100644 --- a/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java +++ b/test-jetty-webapp/src/test/java/org/eclipse/jetty/TestServer.java @@ -37,7 +37,7 @@ public class TestServer { public static void main(String[] args) throws Exception { - Log.getLog().setDebugEnabled(true); + Log.getLog().setDebugEnabled(false); ((StdErrLog)Log.getLog()).setSource(false); String jetty_root = "..";