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:
parent
6478b5ede7
commit
4dd6536e1b
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 = "..";
|
||||
|
|
Loading…
Reference in New Issue