org.jboss.webbeans.jsf
Class PhaseHelper

java.lang.Object
  extended by org.jboss.webbeans.jsf.PhaseHelper

public class PhaseHelper
extends java.lang.Object

Helper class for JSF related operations

Author:
Nicklas Karlsson

Constructor Summary
PhaseHelper()
           
 
Method Summary
static java.lang.String getConversationId()
          Gets the propagated conversation id
static java.lang.String getConversationIdFromRequest()
          Gets the propagated conversation id parameter from the request
static java.lang.String getConversationIdFromViewRoot()
          Gets the propagated conversation id from the view root attribute map
static javax.servlet.http.HttpSession getHttpSession()
          Gets the HTTP session
static boolean isPostback()
          Checks if current request is a JSF postback
static void propagateConversation(java.lang.String cid)
          Creates and/or updates the conversation propagation component in the UI view root
static void stopConversationPropagation()
          Stops conversation propagation through the view root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseHelper

public PhaseHelper()
Method Detail

isPostback

public static boolean isPostback()
Checks if current request is a JSF postback

Returns:
True if postback, false otherwise

propagateConversation

public static void propagateConversation(java.lang.String cid)
Creates and/or updates the conversation propagation component in the UI view root

Parameters:
cid - The conversation id to propagate

getConversationIdFromRequest

public static java.lang.String getConversationIdFromRequest()
Gets the propagated conversation id parameter from the request

Returns:
The conversation id (or null if not found)

getConversationIdFromViewRoot

public static java.lang.String getConversationIdFromViewRoot()
Gets the propagated conversation id from the view root attribute map

Returns:
The conversation id (or null if not found)

getConversationId

public static java.lang.String getConversationId()
Gets the propagated conversation id

Returns:
The conversation id (or null if not found)

getHttpSession

public static javax.servlet.http.HttpSession getHttpSession()
Gets the HTTP session

Returns:
The session

stopConversationPropagation

public static void stopConversationPropagation()
Stops conversation propagation through the view root



Copyright © 2011. All Rights Reserved.