public abstract class AbstractCreateAndInvalidateTest extends AbstractTestBase
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCreateAndInvalidateTest.TestServlet |
static class |
AbstractCreateAndInvalidateTest.TestServletB |
Modifier and Type | Field and Description |
---|---|
protected AbstractTestServer |
_server1 |
protected AbstractCreateAndInvalidateTest.TestServlet |
_servlet |
Constructor and Description |
---|
AbstractCreateAndInvalidateTest() |
Modifier and Type | Method and Description |
---|---|
abstract void |
checkSession(String sessionId,
boolean isPersisted) |
abstract void |
checkSessionByKey(String sessionid,
String contextId,
boolean isPersisted) |
void |
testSessionCreateAndInvalidate()
Create and then invalidate a session in the same request.
|
void |
testSessionCreateForward()
Create a session in a context, forward to another context and create a
session in it too.
|
void |
testSessionCreateForwardAndInvalidate()
Create a session in one context, forward to another context and create another session
in it, then invalidate the session in the original context: that should invalidate the
session in both contexts and no session should exist after the response completes.
|
createServer
protected AbstractCreateAndInvalidateTest.TestServlet _servlet
protected AbstractTestServer _server1
public abstract void checkSession(String sessionId, boolean isPersisted) throws Exception
sessionId
- isPersisted
- Exception
public abstract void checkSessionByKey(String sessionid, String contextId, boolean isPersisted) throws Exception
sessionid
- contextId
- isPersisted
- Exception
public void testSessionCreateAndInvalidate() throws Exception
Exception
public void testSessionCreateForward() throws Exception
Exception
public void testSessionCreateForwardAndInvalidate() throws Exception
Exception
Copyright © 1995–2016 Webtide. All rights reserved.