|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.jsf.FacesSupport
org.apache.struts2.jsf.FacesInterceptor
public class FacesInterceptor
Translates JSF phases into individual interceptors, and adapts their expected workflow to Action 2
Field Summary |
---|
Fields inherited from class org.apache.struts2.jsf.FacesSupport |
---|
FACES_ENABLED, log |
Constructor Summary | |
---|---|
FacesInterceptor()
|
Method Summary | |
---|---|
void |
destroy()
Not used |
protected boolean |
executePhase(java.lang.String viewId,
javax.faces.context.FacesContext facesContext)
Executes the specific phase. |
void |
init()
Not used |
java.lang.String |
intercept(com.opensymphony.xwork2.ActionInvocation invocation)
Adapts the phase workflow to Action 2 |
protected boolean |
isFacesEnabled(com.opensymphony.xwork2.ActionContext ctx)
Determines whether to process this request with the JSF phases |
Methods inherited from class org.apache.struts2.jsf.FacesSupport |
---|
informPhaseListenersAfter, informPhaseListenersBefore, isResponseComplete, setLifecycle, shouldRenderResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacesInterceptor()
Method Detail |
---|
public void init()
init
in interface com.opensymphony.xwork2.interceptor.Interceptor
public java.lang.String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws java.lang.Exception
intercept
in interface com.opensymphony.xwork2.interceptor.Interceptor
invocation
- The action invocation
java.lang.Exception
protected boolean executePhase(java.lang.String viewId, javax.faces.context.FacesContext facesContext)
viewId
- The view idfacesContext
- The current faces context
public void destroy()
destroy
in interface com.opensymphony.xwork2.interceptor.Interceptor
protected boolean isFacesEnabled(com.opensymphony.xwork2.ActionContext ctx)
ctx
- The current action context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |