org.jboss.seam.faces
@Scope(value=EVENT) @Name(value="org.jboss.seam.core.manager") @Install(precedence=10, classDependencies="javax.faces.context.FacesContext") @BypassInterceptors public class FacesManager extends Manager
EVENT_CONVERSATION_BEGIN, EVENT_CONVERSATION_DESTROYED, EVENT_CONVERSATION_END, EVENT_CONVERSATION_TIMEOUT, REDIRECT_FROM_MANAGER
Constructor and Description |
---|
FacesManager() |
Modifier and Type | Method and Description |
---|---|
String |
appendConversationIdFromRedirectFilter(String url,
String viewId)
Called by the Seam Redirect Filter when a redirect is called.
|
void |
beforeRedirect(String viewId)
Temporarily promote a temporary conversation to
a long running conversation for the duration of
a browser redirect.
|
protected String |
generateInitialConversationId() |
static FacesManager |
instance() |
void |
interpolateAndRedirect(String url) |
void |
prepareBackswitch(javax.faces.context.FacesContext facesContext)
If a page description is defined, remember the description and
view id for the current page, to support conversation switching.
|
void |
redirect(String viewId)
Redirect to the given view id, encoding the conversation id
into the request URL.
|
void |
redirect(String viewId,
Map<String,Object> parameters,
boolean includeConversationId) |
void |
redirect(String viewId,
Map<String,Object> parameters,
boolean includeConversationId,
boolean includePageParams)
Redirect to the given view id, after encoding parameters and conversation
id into the request URL.
|
void |
redirect(String viewId,
String conversationId)
Redirect to the given view id, after encoding the given conversation
id into the request URL.
|
void |
redirectToExternalURL(String url) |
protected void |
storeConversationToViewRootIfNecessary() |
beforeRedirect, beginConversation, beginNestedConversation, conversationTimeout, encodeConversationId, encodeConversationId, encodeConversationId, encodeConversationIdParameter, encodeParameters, endConversation, endRequest, endRootConversation, flushConversationMetadata, getConcurrentRequestTimeout, getConversationIdParameter, getConversationTimeout, getCurrentConversationConcurrentRequestTimeout, getCurrentConversationDescription, getCurrentConversationEntry, getCurrentConversationId, getCurrentConversationIdStack, getCurrentConversationTimeout, getCurrentConversationViewId, getDefaultFlushMode, getParentConversationId, getParentConversationIdParameter, getParentConversationViewId, getRootConversationId, getUriEncoding, handleConversationPropagation, initializeTemporaryConversation, isDifferentConversationId, isLongRunningConversation, isLongRunningOrNestedConversation, isNestedConversation, isReallyLongRunningConversation, killAllOtherConversations, leaveConversation, restoreConversation, setConcurrentRequestTimeout, setConversationIdParameter, setConversationTimeout, setCurrentConversationId, setCurrentConversationIdStack, setDefaultFlushMode, setLongRunningConversation, setParentConversationIdParameter, setUriEncoding, switchConversation, switchConversation, toString, unlockConversation, updateCurrentConversationId
public void beforeRedirect(String viewId)
public void interpolateAndRedirect(String url)
protected void storeConversationToViewRootIfNecessary()
storeConversationToViewRootIfNecessary
in class Manager
protected String generateInitialConversationId()
generateInitialConversationId
in class Manager
public void redirectToExternalURL(String url)
public void redirect(String viewId)
public void redirect(String viewId, Map<String,Object> parameters, boolean includeConversationId)
public void redirect(String viewId, Map<String,Object> parameters, boolean includeConversationId, boolean includePageParams)
viewId
- the JSF view idparameters
- request parameters to be encoded (possibly null)includeConversationId
- determines if the conversation id is to be encodedpublic void redirect(String viewId, String conversationId)
public String appendConversationIdFromRedirectFilter(String url, String viewId)
url
- the requested URLpublic void prepareBackswitch(javax.faces.context.FacesContext facesContext)
public static FacesManager instance()
Copyright © 2015 Seam Framework. All Rights Reserved.