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
This commit is contained in:
Greg Wilkins 2010-07-20 00:46:54 +00:00
parent 6478b5ede7
commit 4dd6536e1b
2 changed files with 13 additions and 2 deletions

View File

@ -478,6 +478,18 @@ public class ServletHolder extends Holder<Servlet> 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<Servlet> implements UserIdentity.Scope
{
return ServletHolder.this.getInitOrder();
}
public void setRunAsRole(String role)
{

View File

@ -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 = "..";