Package 

Class CookieUtilsKt

    • Method Summary

      Modifier and Type Method Description
      final static Cookie findCookie(HttpServletRequest $self, String name) A convenience method to find the first cookie matching the given name.
      final static List<Cookie> parseCookies(String header) Parses all cookies from a given header.
      final static List<Cookie> parseCookies(List<String> headers)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findCookie

         final static Cookie findCookie(HttpServletRequest $self, String name)

        A convenience method to find the first cookie matching the given name. This utils function delegates the actual implementation to the Webutils convenience class.

        Parameters:
        name - The name of the cookie to find.
      • parseCookies

         final static List<Cookie> parseCookies(String header)

        Parses all cookies from a given header. Under the hood this method uses the java.net.HttpCookie to parse the header, and from there maps each to a javax.servlet.Cookie.

        Parameters:
        header - The header to parse cookies from.