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 2013/09/23 10:14:38 UTC

svn commit: r1525527 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/StartupServletExternalContextImpl.java

Author: lu4242
Date: Mon Sep 23 08:14:37 2013
New Revision: 1525527

URL: http://svn.apache.org/r1525527
Log:
small fix do not throw UnsupportedOperationException in some init operations (instead return null to allow things work smoothly)

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/StartupServletExternalContextImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/StartupServletExternalContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/StartupServletExternalContextImpl.java?rev=1525527&r1=1525526&r2=1525527&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/StartupServletExternalContextImpl.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/context/servlet/StartupServletExternalContextImpl.java Mon Sep 23 08:14:37 2013
@@ -96,7 +96,8 @@ public class StartupServletExternalConte
     @Override
     public Object getRequest()
     {
-        throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
+        return null;
+        //throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
     }
 
     @Override
@@ -174,19 +175,28 @@ public class StartupServletExternalConte
     @Override
     public Object getResponse()
     {
-        throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
+        return null;
+        //throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
     }
 
     @Override
     public Object getSession(boolean create)
     {
-        throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
+        if (create)
+        {
+            throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
+        }
+        return null;
     }
 
     @Override
     public String getSessionId(boolean create)
     {
-        throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
+        if (create)
+        {
+            throw new UnsupportedOperationException(EXCEPTION_TEXT + _getTime());
+        }
+        return null;
     }
 
     @Override