com.liferay.faces.bridge.context.flash
Class BridgeFlashWrapper

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

public abstract class BridgeFlashWrapper
extends BridgeFlash

This 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.getResponse() 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
BridgeFlashWrapper()
           
 
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()
           
abstract  boolean isServletResponseRequired()
           
 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 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

BridgeFlashWrapper

public BridgeFlashWrapper()
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()

isServletResponseRequired

public abstract boolean isServletResponseRequired()
Specified by:
isServletResponseRequired in class BridgeFlash

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 © 2014 Liferay, Inc.. All Rights Reserved.