You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/07/08 05:07:05 UTC

svn commit: r792023 - /myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java

Author: lu4242
Date: Wed Jul  8 03:07:05 2009
New Revision: 792023

URL: http://svn.apache.org/viewvc?rev=792023&view=rev
Log:
MYFACES-2266 Implement Flash object and EL resolver (cleanup)

Modified:
    myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java?rev=792023&r1=792022&r2=792023&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java (original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/flash/FlashImpl.java Wed Jul  8 03:07:05 2009
@@ -100,7 +100,7 @@
     /**
      * Returns a cryptographically secure random number to use as the _count seed
      */
-    static long _getSeed()
+    private static long _getSeed()
     {
         SecureRandom rng;
         try
@@ -128,7 +128,7 @@
      * 
      * @return
      */
-    String _getNextToken()
+    protected String _getNextToken()
     {
         // atomically increment the value
         long nextToken = _count.incrementAndGet();
@@ -164,7 +164,7 @@
      * for more information see SubKeyMap doc
      */
     @SuppressWarnings("unchecked")
-    Map<String, Object> _getMapFromSession(FacesContext context,
+    private Map<String, Object> _getMapFromSession(FacesContext context,
             String token, boolean createIfNeeded)
     {
         ExternalContext external = context.getExternalContext();
@@ -199,7 +199,7 @@
      * @return
      */
     @SuppressWarnings("unchecked")
-    Map<String, Object> getCurrentRequestMap(FacesContext context)
+    protected Map<String, Object> getCurrentRequestMap(FacesContext context)
     {
         Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
         Map<String, Object> map = (Map<String, Object>) requestMap.get(FLASH_CURRENT_MAP_CACHE);
@@ -214,7 +214,7 @@
     }
     
     @SuppressWarnings("unchecked")
-    Map<String, Object> getPostbackRequestMap(FacesContext context)
+    protected Map<String, Object> getPostbackRequestMap(FacesContext context)
     {
         Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
         Map<String, Object> map = (Map<String, Object>) requestMap.get(FLASH_POSTBACK_MAP_CACHE);
@@ -279,7 +279,7 @@
      * 
      * @return
      */
-    Map<String, Object> getCurrentPhaseMap()
+    private Map<String, Object> getCurrentPhaseMap()
     {
         FacesContext facesContext = FacesContext.getCurrentInstance();
         if (PhaseId.RENDER_RESPONSE.equals(facesContext.getCurrentPhaseId()) ||
@@ -293,7 +293,7 @@
         }
     }
     
-    void _removeAllChildren(FacesContext facesContext)
+    private void _removeAllChildren(FacesContext facesContext)
     {
         Map<String, Object> map = getPostbackRequestMap(facesContext);
         
@@ -451,7 +451,7 @@
     /**
      * Retrieve the postback map key
      */
-    String _getPostbackMapKey(ExternalContext externalContext)
+    private String _getPostbackMapKey(ExternalContext externalContext)
     {
         String token = null;
         Object response = externalContext.getResponse();
@@ -478,7 +478,7 @@
      * 
      * @param externalContext
      */
-    void _addPostbackMapKey(ExternalContext externalContext)
+    private void _addPostbackMapKey(ExternalContext externalContext)
     {
         Object response = externalContext.getResponse();
         String token = (String) externalContext.getRequestMap().get(FLASH_CURRENT_MAP_KEY);