You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/05/24 12:44:40 UTC

[tomcat] branch main updated (dab8bc1 -> ee923b1)

This is an automated email from the ASF dual-hosted git repository.

markt pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git.


    from dab8bc1  Update version info
     new 029d316  Add Servlet update to changelog
     new ee923b1  Sync Tomcat 10.1.x with latest Servlet 5.1 API. Implementation is TODO

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 java/jakarta/servlet/http/Cookie.java | 43 +++++++++++++++++++++++++++++++++++
 webapps/docs/changelog.xml            |  4 ++++
 2 files changed, 47 insertions(+)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[tomcat] 01/02: Add Servlet update to changelog

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 029d3162f686f0e8da492dec2f364af9c76dd0c1
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon May 24 12:27:14 2021 +0100

    Add Servlet update to changelog
---
 webapps/docs/changelog.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 0a7fa14..2b2a716 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -115,6 +115,10 @@
   </subsection>
   <subsection name="Catalina">
     <changelog>
+      <scode>
+        Incremented supported Servlet version to 5.1 to align with the current
+        development branch of the Servlet specification. (markt)
+      </scode>
       <fix>
         <bug>65301</bug>: <code>RemoteIpValve</code> will now avoid getting
         the local host name when it is not needed. (remm)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[tomcat] 02/02: Sync Tomcat 10.1.x with latest Servlet 5.1 API. Implementation is TODO

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit ee923b135e85cd8fcf9314d7a3a78a7ad8afede3
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon May 24 12:40:42 2021 +0100

    Sync Tomcat 10.1.x with latest Servlet 5.1 API. Implementation is TODO
---
 java/jakarta/servlet/http/Cookie.java | 43 +++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/java/jakarta/servlet/http/Cookie.java b/java/jakarta/servlet/http/Cookie.java
index 48a621b..084e1e1 100644
--- a/java/jakarta/servlet/http/Cookie.java
+++ b/java/jakarta/servlet/http/Cookie.java
@@ -22,6 +22,7 @@ import java.security.PrivilegedAction;
 import java.text.MessageFormat;
 import java.util.BitSet;
 import java.util.Locale;
+import java.util.Map;
 import java.util.ResourceBundle;
 
 /**
@@ -409,6 +410,48 @@ public class Cookie implements Cloneable, Serializable {
     public boolean isHttpOnly() {
         return httpOnly;
     }
+
+    /**
+     * Sets the value for the given cookie attribute. When a value is set via
+     * this method, the value returned by the attribute specific getter (if any)
+     * must be consistent with the value set via this method.
+     *
+     * @param name  Name of attribute to set
+     * @param value Value of attribute
+     *
+     * @throws IllegalArgumentException If the attribute name is null, contains
+     *         any characters not permitted foe use in Cookie names or matches a
+     *         name reserved by the cookie specification.
+     *
+     * @throws NumberFormatException If the attribute is known to be numerical
+     *         but the provided value cannot be parsed to a number.
+     *
+     * @since Servlet 5.1
+     */
+    public void setAttribute(String name, String value) {
+        // TODO - Servlet 5.1
+    }
+
+    /**
+     * Obtain the value for a given attribute. Values returned from this method
+     * must be consistent with the values set and returned by the attribute
+     * specific getters and setters in this class.
+     *
+     * @param name  Name of attribute to return
+     *
+     * @return Value of specified attribute
+     *
+     * @since Servlet 5.1
+     */
+    public String getAttribute(String name) {
+        // TODO - Servlet 5.1
+        return null;
+    }
+
+    public Map<String,String> getAttributes() {
+        // TODO - Servlet 5.1
+        return null;
+    }
 }
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org