myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sless...@apache.org
Subject svn commit: r763441 - 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 Wed, 08 Apr 2009 22:51:50 GMT
Author: slessard
Date: Wed Apr  8 22:51:49 2009
New Revision: 763441

URL: http://svn.apache.org/viewvc?rev=763441&view=rev
Log:
MYFACES-2178 - Implement IMPL - method addResponseHeader of ExternalContext

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=763441&r1=763440&r2=763441&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
Wed Apr  8 22:51:49 2009
@@ -49,7 +49,6 @@
      */
     public void addResponseCookie(String name, String value, Map<String, Object> properties)
     {
-        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 
@@ -62,7 +61,6 @@
      */
     public void addResponseHeader(String name, String value)
     {
-        // TODO: IMPLEMENT IMPL
         throw new UnsupportedOperationException();
     }
 

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=763441&r1=763440&r2=763441&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
Wed Apr  8 22:51:49 2009
@@ -648,6 +648,15 @@
     public String getContextName() {
         return _servletContext.getServletContextName();
     }
-
-
+    
+    /**
+     * @since JSF 2.0
+     */
+    @Override
+    public void addResponseHeader(String name, String value)
+    {
+    	checkHttpServletResponse();
+    	_httpServletResponse.addHeader(name, value);
+    }
+    
 }



Mime
View raw message