[asterisk-scf-commits] asterisk-scf/release/slice.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Sun Sep 11 22:53:40 CDT 2011


branch "master" has been updated
       via  d9c45ee516bb6e0fb4a64851c8f71278c85f62ca (commit)
      from  a2b0b33c81ba48bacfe985007af3c18ceca180ef (commit)

Summary of changes:
 slice/AsteriskSCF/Media/MediaIf.ice                |   54 ++++++++++++++++
 .../SessionCommunicationsIf.ice                    |   68 ++++++++++----------
 2 files changed, 88 insertions(+), 34 deletions(-)


- Log -----------------------------------------------------------------
commit d9c45ee516bb6e0fb4a64851c8f71278c85f62ca
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Sun Sep 11 22:53:02 2011 -0500

    API changes to support Media Session cookies.

diff --git a/slice/AsteriskSCF/Media/MediaIf.ice b/slice/AsteriskSCF/Media/MediaIf.ice
index f9bb522..d13b005 100644
--- a/slice/AsteriskSCF/Media/MediaIf.ice
+++ b/slice/AsteriskSCF/Media/MediaIf.ice
@@ -34,6 +34,27 @@ module V1
     const string Version = "V1";
 
     /**
+     * Generic base class for 'cookies', opaque data items that can be
+     * stored on a Session.
+     *
+     * @see SessionCookies
+     */
+    unsliceable class SessionCookie
+    {
+    };
+
+    /**
+     * A sequence of cookies, allowing for a variable number of them
+     * to be passed in a single operation or event.
+     */
+    sequence <SessionCookie> SessionCookies;
+
+    /**
+     * A dictionary of cookies, used for storing them.
+     */
+    dictionary<string, SessionCookie> SessionCookieDict;
+
+    /**
      * Forward declaration of the Frame class so we can define a sequence of them.
      */
     class Frame;
@@ -223,6 +244,39 @@ module V1
          * @return string A string identifier for the session.
          */
         idempotent string getId();
+
+        /**
+         * Set (or replace) cookies on the session.
+         *
+         * @param cookies A sequence of one or more concrete objects,
+         *        each of which are of a type derived from SessionCookie.
+         *
+         * @note  There can only be one cookie of a given type associated
+         *        with a session.
+         */
+        void setCookies(SessionCookies cookies);
+
+        /**
+         * Remove cookies from the session.
+         *
+         * @param cookies A sequence of one or more concrete objects,
+         *        each of which are of a type derived from SessionCookie.
+         *        Only the concrete type of each cookie passed in is used to 
+         *        determine which cookies to remove.
+         */
+        void removeCookies(SessionCookies cookies);
+
+        /**
+         * Get cookies stored on the session.
+         *
+         * @param cookieTypes A sequence of zero or more cookie objects,
+         *        each of which is derived from SessionCookie.
+         *
+         * @return A sequence of zero or more cookies from the session,
+         *         with types that match the types of the template cookies
+         *         provided in the cookieTypes parameter.
+         */
+        ["amd"] SessionCookies getCookies(SessionCookies cookieTypes);
     };
 
     /**
diff --git a/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice b/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice
index fbf4c7b..2343151 100644
--- a/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice
+++ b/slice/AsteriskSCF/SessionCommunications/SessionCommunicationsIf.ice
@@ -394,42 +394,42 @@ module V1
          */
         ["amd"] SessionInfo addListener(SessionListener* listener);
 
-        /**
-         * Set (or replace) cookies on the session.
-         *
-         * @param cookies A sequence of one or more concrete objects,
-         *        each of which are of a type derived from SessionCookie.
-         *        The session manager will store these cookies on the
-         *        session, replacing any existing cookies with matching
-         *        types.
-         *
-         * @note  There can only be one cookie of a given type associated
-         *        with a session.
-         */
-        void setCookies(SessionCookies cookies);
+    /**
+     * Set (or replace) cookies on the session.
+     *
+     * @param cookies A sequence of one or more concrete objects,
+     *        each of which are of a type derived from SessionCookie.
+     *        The session manager will store these cookies on the
+     *        session, replacing any existing cookies with matching
+     *        types.
+     *
+     * @note  There can only be one cookie of a given type associated
+     *        with a session.
+     **/
+    void setCookies(SessionCookies cookies);
 
-        /**
-         * Remove cookies from the session.
-         *
-         * @param cookies A sequence of one or more concrete objects,
-         *        each of which are of a type derived from SessionCookie.
-         *        The session manager will remove any cookies on the session
-         *        with types that match the ones in this sequence; the
-         *        content of the supplied cookies is not compared.
-         */
-        void removeCookies(SessionCookies cookies);
+    /**
+     * Remove cookies from the session.
+     *
+     * @param cookies A sequence of one or more concrete objects,
+     *        each of which are of a type derived from SessionCookie.
+     *        The session manager will remove any cookies on the session
+     *        with types that match the ones in this sequence; the
+     *        content of the supplied cookies is not compared.
+     **/
+    void removeCookies(SessionCookies cookies);
 
-        /**
-         * Get cookies stored on the session.
-         *
-         * @param cookieTypes A sequence of zero or more concrete objects,
-         *        each of which are of a type derived from SessionCookie.
-         *
-         * @return A sequence of zero or more cookies from the session,
-         *         with types that match the types of the template cookies
-         *         provided in the cookieTypes parameter.
-         */
-        SessionCookies getCookies(SessionCookies cookieTypes);
+    /**
+     * Get cookies stored on the session.
+     *
+     * @param cookieTypes A sequence of zero or more concrete objects,
+     *        each of which are of a type derived from SessionCookie.
+     *
+     * @return A sequence of zero or more cookies from the session,
+     *         with types that match the types of the template cookies
+     *         provided in the cookieTypes parameter.
+     **/
+    ["amd"] SessionCookies getCookies(SessionCookies cookieTypes);
 
         /**
          * Request that an indication be performed on a session.

-----------------------------------------------------------------------


-- 
asterisk-scf/release/slice.git



More information about the asterisk-scf-commits mailing list