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/02/12 16:41:27 UTC
svn commit: r1445205 -
/myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java
Author: lu4242
Date: Tue Feb 12 15:41:26 2013
New Revision: 1445205
URL: http://svn.apache.org/r1445205
Log:
MYFACES-3694 Add httpOnly to ExternalContext.addResponseCookie(...) (Thanks to Paul Nicolucci for provide this patch)
Modified:
myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java
Modified: myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java?rev=1445205&r1=1445204&r2=1445205&view=diff
==============================================================================
--- myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java (original)
+++ myfaces/core/branches/2.2.x/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java Tue Feb 12 15:41:26 2013
@@ -764,6 +764,11 @@ public final class ServletExternalContex
cookie.setPath((String) propertyValue);
continue;
}
+ else if ("httpOnly".equals(propertyKey))
+ {
+ cookie.setHttpOnly((Boolean) propertyValue);
+ continue;
+ }
throw new IllegalArgumentException("Unused key when creating Cookie");
}
}