myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sless...@apache.org
Subject svn commit: r701833 - in /myfaces/core/branches/2_0_0: api/src/main/java/javax/faces/context/ExternalContext.java impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java
Date Sun, 05 Oct 2008 17:23:33 GMT
Author: slessard
Date: Sun Oct  5 10:23:32 2008
New Revision: 701833

URL: http://svn.apache.org/viewvc?rev=701833&view=rev
Log:
MYFACES-1934 - Implement ExternalContext.getRealPath(String)

Modified:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java
    myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java?rev=701833&r1=701832&r2=701833&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java
(original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/context/ExternalContext.java
Sun Oct  5 10:23:32 2008
@@ -105,9 +105,7 @@
      */
     public String getRealPath(String path)
     {
-        // TODO: JSF 2.0 #25
-        // VALIDATE: Should this be asbtract or throws UnsupportedOperationException? Check
with the EG
-        return null;
+        throw new UnsupportedOperationException();
     }
 
     public abstract String getRemoteUser();

Modified: myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java?rev=701833&r1=701832&r2=701833&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java
(original)
+++ myfaces/core/branches/2_0_0/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java
Sun Oct  5 10:23:32 2008
@@ -371,6 +371,13 @@
     }
 
     @Override
+    public String getRealPath(String path)
+    {
+        checkNull(path, "path");
+        return _servletContext.getRealPath(path);
+    }
+
+    @Override
     public String getRemoteUser()
     {
         checkHttpServletRequest();
@@ -520,4 +527,4 @@
         return servletRequest instanceof HttpServletRequest;
     }
 
-}
\ No newline at end of file
+}



Mime
View raw message