com.liferay.faces.bridge.context.flash.internal
Class BridgeFlashBase

java.lang.Object
  extended by javax.faces.context.Flash
      extended by com.liferay.faces.bridge.context.flash.internal.BridgeFlash
          extended by com.liferay.faces.bridge.context.flash.internal.BridgeFlashBase
All Implemented Interfaces:
Map<String,Object>
Direct Known Subclasses:
BridgeFlashMojarraImpl, BridgeFlashMyFacesImpl

public abstract class BridgeFlashBase
extends BridgeFlash

This abstract class decorates/wraps the Flash implementation provided by the JSF runtime. Specifically, this wrapper was created to workaround some Servlet-API dependencies in some of the methods in the com.sun.faces.context.flash.ELFlash implementation provided by Mojarra. See the ExternalContextImpl method for usage of the Mojarra workaround.

Author:
Neil Griffin

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
BridgeFlashBase()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 void doPostPhaseActions(javax.faces.context.FacesContext facesContext)
           
 void doPrePhaseActions(javax.faces.context.FacesContext facesContext)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 Object get(Object key)
           
abstract  javax.faces.context.Flash getWrapped()
           
 boolean isEmpty()
           
 boolean isKeepMessages()
           
 boolean isRedirect()
           
 void keep(String key)
           
 Set<String> keySet()
           
 Object put(String key, Object value)
           
 void putAll(Map<? extends String,? extends Object> values)
           
 void putNow(String key, Object value)
           
 Object remove(Object key)
           
 void setKeepMessages(boolean newValue)
           
 void setRedirect(boolean newValue)
           
 int size()
           
 Collection<Object> values()
           
 
Methods inherited from class com.liferay.faces.bridge.context.flash.internal.BridgeFlash
isServletResponseRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

BridgeFlashBase

public BridgeFlashBase()
Method Detail

clear

public void clear()

containsKey

public boolean containsKey(Object key)

containsValue

public boolean containsValue(Object value)

doPostPhaseActions

public void doPostPhaseActions(javax.faces.context.FacesContext facesContext)
Specified by:
doPostPhaseActions in class javax.faces.context.Flash

doPrePhaseActions

public void doPrePhaseActions(javax.faces.context.FacesContext facesContext)
Specified by:
doPrePhaseActions in class javax.faces.context.Flash

entrySet

public Set<Map.Entry<String,Object>> entrySet()

get

public Object get(Object key)

keep

public void keep(String key)
Specified by:
keep in class javax.faces.context.Flash

keySet

public Set<String> keySet()

put

public Object put(String key,
                  Object value)

putAll

public void putAll(Map<? extends String,? extends Object> values)

putNow

public void putNow(String key,
                   Object value)
Specified by:
putNow in class javax.faces.context.Flash

remove

public Object remove(Object key)

size

public int size()

values

public Collection<Object> values()

setKeepMessages

public void setKeepMessages(boolean newValue)
Specified by:
setKeepMessages in class javax.faces.context.Flash

setRedirect

public void setRedirect(boolean newValue)
Specified by:
setRedirect in class javax.faces.context.Flash

isKeepMessages

public boolean isKeepMessages()
Specified by:
isKeepMessages in class javax.faces.context.Flash

isRedirect

public boolean isRedirect()
Specified by:
isRedirect in class javax.faces.context.Flash

getWrapped

public abstract javax.faces.context.Flash getWrapped()

isEmpty

public boolean isEmpty()


Copyright © 2015 Liferay, Inc.. All rights reserved.