Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse McConnell2012-08-17 10:18:47 -0400
committerJesse McConnell2012-08-17 10:18:47 -0400
commit8c0897839a41b310a42759043fa2a5578262870e (patch)
tree9cdfc21c97e6e7370ee7fe4cbef86df1a81b836e /jetty-security/src/main/java
parent086e74bed8250c3400ee192dc00403a71b6d1525 (diff)
downloadorg.eclipse.jetty.project-8c0897839a41b310a42759043fa2a5578262870e.tar.gz
org.eclipse.jetty.project-8c0897839a41b310a42759043fa2a5578262870e.tar.xz
org.eclipse.jetty.project-8c0897839a41b310a42759043fa2a5578262870e.zip
replace old AbstractHttpConnection with HttpChannel to get request for session listener
Diffstat (limited to 'jetty-security/src/main/java')
-rw-r--r--jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java b/jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java
index 262b40dcee..9cbc329f89 100644
--- a/jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java
+++ b/jetty-security/src/main/java/org/eclipse/jetty/security/SecurityHandler.java
@@ -27,9 +27,9 @@ import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
import org.eclipse.jetty.security.authentication.DeferredAuthentication;
-import org.eclipse.jetty.server.AbstractHttpConnection;
import org.eclipse.jetty.server.Authentication;
import org.eclipse.jetty.server.Handler;
+import org.eclipse.jetty.server.HttpChannel;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.server.UserIdentity;
@@ -300,12 +300,13 @@ public abstract class SecurityHandler extends HandlerWrapper implements Authenti
}
public void sessionCreated(HttpSessionEvent se)
- {
+ {
//if current request is authenticated, then as we have just created the session, mark it as secure, as it has not yet been returned to a user
- AbstractHttpConnection connection = AbstractHttpConnection.getCurrentConnection();
- if (connection == null)
+ HttpChannel channel = HttpChannel.getCurrentHttpChannel();
+
+ if (channel == null)
return;
- Request request = connection.getRequest();
+ Request request = channel.getRequest();
if (request == null)
return;

Back to the top