Class CookieParser

java.lang.Object
cloud.piranha.webapp.impl.CookieParser

public class CookieParser
extends java.lang.Object
The Cookie parser
  • Method Summary

    Modifier and Type Method Description
    static Cookie[] parse​(java.lang.String cookieValues)
    Parse the Cookie header

    Methods inherited from class java.lang.Object

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

    • parse

      public static Cookie[] parse​(java.lang.String cookieValues)
      Parse the Cookie header
      Parameters:
      cookieValues - the Cookie header, without "Cookie:"
      Returns:
      the Cookie array
      Throws:
      java.lang.NullPointerException - if cookieValues is null
      java.lang.IllegalArgumentException - if some cookie contains a illegal character