cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6451] Updating NewCookie toString
Date Thu, 11 Jun 2015 12:40:15 GMT
Repository: cxf
Updated Branches:
  refs/heads/master eac58fa8e -> 2f4c098eb


[CXF-6451] Updating NewCookie toString


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2f4c098e
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2f4c098e
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2f4c098e

Branch: refs/heads/master
Commit: 2f4c098eb11d07a6a2c8c1096407f8292afe8f5f
Parents: eac58fa
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Thu Jun 11 13:39:57 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Thu Jun 11 13:39:57 2015 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/jaxrs/impl/NewCookieHeaderProvider.java     | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2f4c098e/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/NewCookieHeaderProvider.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/NewCookieHeaderProvider.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/NewCookieHeaderProvider.java
index 7cb700f..15ba505 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/NewCookieHeaderProvider.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/NewCookieHeaderProvider.java
@@ -108,9 +108,15 @@ public class NewCookieHeaderProvider implements HeaderDelegate<NewCookie>
{
         if (value.getPath() != null) {
             sb.append(';').append(PATH).append('=').append(value.getPath());
         }
+        if (value.getExpiry() != null) {
+            sb.append(';').append(EXPIRES).append('=').append(HttpUtils.toHttpDate(value.getExpiry()));
+        }
         if (value.isSecure()) {
             sb.append(';').append(SECURE);
         }
+        if (value.isHttpOnly()) {
+            sb.append(';').append(HTTP_ONLY);
+        }
         sb.append(';').append(VERSION).append('=').append(value.getVersion());
         return sb.toString();
     }


Mime
View raw message