replace old getrequest mechanism with the one that simone hates

This commit is contained in:
Jesse McConnell 2012-08-21 15:51:11 -05:00
parent 6ffaa478c4
commit 70cf8dd5bf
1 changed files with 6 additions and 3 deletions

View File

@ -40,7 +40,7 @@ import org.eclipse.jetty.plus.jaas.callback.RequestParameterCallback;
import org.eclipse.jetty.security.DefaultIdentityService;
import org.eclipse.jetty.security.IdentityService;
import org.eclipse.jetty.security.LoginService;
import org.eclipse.jetty.server.AbstractHttpConnection;
import org.eclipse.jetty.server.HttpChannel;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.UserIdentity;
import org.eclipse.jetty.util.Loader;
@ -210,8 +210,11 @@ public class JAASLoginService extends AbstractLifeCycle implements LoginService
}
else if (callback instanceof RequestParameterCallback)
{
AbstractHttpConnection connection = AbstractHttpConnection.getCurrentConnection();
Request request = (connection == null? null : connection.getRequest());
HttpChannel channel = HttpChannel.getCurrentHttpChannel();
if (channel == null)
return;
Request request = channel.getRequest();
if (request != null)
{