|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.servlet.ServletLifecycle
public class ServletLifecycle
Implementation of the Weld lifecycle that can react to servlet events and drives the Session, Conversation and Request (for Servlet requests) lifecycle
| Field Summary | |
|---|---|
static java.lang.String |
REQUEST_ATTRIBUTE_NAME
|
| Constructor Summary | |
|---|---|
ServletLifecycle(ContextLifecycle lifecycle)
|
|
| Method Summary | |
|---|---|
void |
beginRequest(javax.servlet.http.HttpServletRequest request)
Begins a HTTP request Sets the session into the session context |
void |
beginSession(javax.servlet.http.HttpSession session)
Begins a session |
void |
endRequest(javax.servlet.http.HttpServletRequest request)
Ends a HTTP request |
void |
endSession(javax.servlet.http.HttpSession session)
Ends a session, setting up a mock request if necessary |
protected org.jboss.weld.context.api.BeanStore |
restoreSessionContext(javax.servlet.http.HttpServletRequest request)
Restore the session from the underlying session object. |
protected org.jboss.weld.context.api.BeanStore |
restoreSessionContext(javax.servlet.http.HttpSession session)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REQUEST_ATTRIBUTE_NAME
| Constructor Detail |
|---|
public ServletLifecycle(ContextLifecycle lifecycle)
| Method Detail |
|---|
public void beginSession(javax.servlet.http.HttpSession session)
session - The HTTP sessionpublic void endSession(javax.servlet.http.HttpSession session)
session - The HTTP sessionprotected org.jboss.weld.context.api.BeanStore restoreSessionContext(javax.servlet.http.HttpServletRequest request)
session -
protected org.jboss.weld.context.api.BeanStore restoreSessionContext(javax.servlet.http.HttpSession session)
public void beginRequest(javax.servlet.http.HttpServletRequest request)
request - The requestpublic void endRequest(javax.servlet.http.HttpServletRequest request)
request - The request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||