Package org.takes.tk

Class TkWithCookie

  • All Implemented Interfaces:
    Take

    public final class TkWithCookie
    extends TkWrap
    Take that headers.

    This take wraps all responses of another take, adding cookies to them, through RsWithCookie.

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • TkWithCookie

        public TkWithCookie​(Take take,
                            String key,
                            String value)
        Ctor.
        Parameters:
        take - Original
        key - Cookie name
        value - Cookie value