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:57 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes b329345cd -> c437d5205


[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/c437d520
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c437d520
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c437d520

Branch: refs/heads/3.0.x-fixes
Commit: c437d5205431c9bc2ba1b74c128ecadef95f17e1
Parents: b329345
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:40:41 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/c437d520/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