|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jsfunit.framework.WebConversationFactory
public class WebConversationFactory
The WebConversationFactory manages the environment needed to set up the WebClientSpec to be used with an HtmlUnit WebClient.
Field Summary | |
---|---|
static String |
JSF_UNIT_CONVERSATION_FLAG
|
static String |
WAR_URL
|
Method Summary | |
---|---|
protected static void |
clearSession(javax.servlet.http.HttpSession session)
Clear the HttpSession for use by the WebClientSpec and JSFSession. |
static javax.servlet.http.HttpSession |
getSessionFromThreadLocal()
Get the shared HttpSession from the ThreadLocal variable. |
static String |
getWARURL()
Get the base URL for this web app. |
static String |
makeWARURL(javax.servlet.http.HttpServletRequest req)
Returns the complete WAR URL including everything excluding the query params. |
static void |
removeThreadLocals()
Clean up the ThreadLocal variables set in setThreadLocals. |
static void |
setThreadLocals(javax.servlet.http.HttpServletRequest req)
Associates the HttpSession and WAR URL with ThreadLocals. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String JSF_UNIT_CONVERSATION_FLAG
public static String WAR_URL
Method Detail |
---|
public static void setThreadLocals(javax.servlet.http.HttpServletRequest req)
req
- The request that kicks off the tests.public static javax.servlet.http.HttpSession getSessionFromThreadLocal()
public static String makeWARURL(javax.servlet.http.HttpServletRequest req)
req
- The request that kicks off the tests.
public static void removeThreadLocals()
protected static void clearSession(javax.servlet.http.HttpSession session)
session
- The shared HttpSessionpublic static String getWARURL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |