Class CookiesImpl

    • Method Detail

      • readCookieValue

        public   name)
        Description copied from interface: Cookies
        Returns the value of the first cookie whose name matches. Returns null if no such cookie exists. This method is only aware of cookies that are part of the incoming request; it does not know about additional cookies added since then (via Cookies.writeCookieValue(String, String)).
        Specified by:
        readCookieValue in interface Cookies
      • writeCookieValue

        public void  name,
                                      value)
        Description copied from interface: Cookies
        Creates or updates a cookie value. The value is stored using a max age (in seconds) defined by the symbol org.apache.tapestry5.default-cookie-max-age. The factory default for this value is the equivalent of one week.
        Specified by:
        writeCookieValue in interface Cookies
      • writeCookieValue

        public void  name,
                                      value,
                                     int maxAge)
        Description copied from interface: Cookies
        As with Cookies.writeCookieValue(String, String) but an explicit maximum age may be set.
        Specified by:
        writeCookieValue in interface Cookies
        Parameters:
        name - the name of the cookie
        value - the value to be stored in the cookie
        maxAge - the maximum age, in seconds, to store the cookie
      • getBuilder

        public  name,
                                         value)
        Description copied from interface: Cookies
        Returns a . The default implementation creates a cookie who's value is stored using a max age (in seconds) defined by the symbol org.apache.tapestry5.default-cookie-max-age. The factory default for this value is the equivalent of one week. The default path is the context path (see Request.getContextPath()) of the current Request, the default secure setting is to send the cookie over secure channels only, if the original request was secure (see Request.isSecure()
        Specified by:
        getBuilder in interface Cookies
        Parameters:
        name - the name of the cookie
        value - the value of the cookie
        Returns:
        a CookieBuilder for setting additional cookie attributes and writing it out