Class ServletCookieAdaptor

  • All Implemented Interfaces:
    io.undertow.server.handlers.Cookie

    public class ServletCookieAdaptor
    extends Object
    implements io.undertow.server.handlers.Cookie
    Adaptor between and undertow and a servlet cookie
    Author:
    Stuart Douglas
    • Constructor Detail

      • ServletCookieAdaptor

        public ServletCookieAdaptor​(javax.servlet.http.Cookie cookie)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface io.undertow.server.handlers.Cookie
      • getValue

        public String getValue()
        Specified by:
        getValue in interface io.undertow.server.handlers.Cookie
      • setValue

        public io.undertow.server.handlers.Cookie setValue​(String value)
        Specified by:
        setValue in interface io.undertow.server.handlers.Cookie
      • getPath

        public String getPath()
        Specified by:
        getPath in interface io.undertow.server.handlers.Cookie
      • setPath

        public io.undertow.server.handlers.Cookie setPath​(String path)
        Specified by:
        setPath in interface io.undertow.server.handlers.Cookie
      • getDomain

        public String getDomain()
        Specified by:
        getDomain in interface io.undertow.server.handlers.Cookie
      • setDomain

        public io.undertow.server.handlers.Cookie setDomain​(String domain)
        Specified by:
        setDomain in interface io.undertow.server.handlers.Cookie
      • getMaxAge

        public Integer getMaxAge()
        Specified by:
        getMaxAge in interface io.undertow.server.handlers.Cookie
      • setMaxAge

        public io.undertow.server.handlers.Cookie setMaxAge​(Integer maxAge)
        Specified by:
        setMaxAge in interface io.undertow.server.handlers.Cookie
      • isDiscard

        public boolean isDiscard()
        Specified by:
        isDiscard in interface io.undertow.server.handlers.Cookie
      • setDiscard

        public io.undertow.server.handlers.Cookie setDiscard​(boolean discard)
        Specified by:
        setDiscard in interface io.undertow.server.handlers.Cookie
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface io.undertow.server.handlers.Cookie
      • setSecure

        public io.undertow.server.handlers.Cookie setSecure​(boolean secure)
        Specified by:
        setSecure in interface io.undertow.server.handlers.Cookie
      • getVersion

        public int getVersion()
        Specified by:
        getVersion in interface io.undertow.server.handlers.Cookie
      • setVersion

        public io.undertow.server.handlers.Cookie setVersion​(int version)
        Specified by:
        setVersion in interface io.undertow.server.handlers.Cookie
      • isHttpOnly

        public boolean isHttpOnly()
        Specified by:
        isHttpOnly in interface io.undertow.server.handlers.Cookie
      • setHttpOnly

        public io.undertow.server.handlers.Cookie setHttpOnly​(boolean httpOnly)
        Specified by:
        setHttpOnly in interface io.undertow.server.handlers.Cookie
      • getExpires

        public Date getExpires()
        Specified by:
        getExpires in interface io.undertow.server.handlers.Cookie
      • setExpires

        public io.undertow.server.handlers.Cookie setExpires​(Date expires)
        Specified by:
        setExpires in interface io.undertow.server.handlers.Cookie
      • getComment

        public String getComment()
        Specified by:
        getComment in interface io.undertow.server.handlers.Cookie
      • setComment

        public io.undertow.server.handlers.Cookie setComment​(String comment)
        Specified by:
        setComment in interface io.undertow.server.handlers.Cookie
      • isSameSite

        public boolean isSameSite()
        Specified by:
        isSameSite in interface io.undertow.server.handlers.Cookie
      • setSameSite

        public io.undertow.server.handlers.Cookie setSameSite​(boolean sameSite)
        Specified by:
        setSameSite in interface io.undertow.server.handlers.Cookie
      • getSameSiteMode

        public String getSameSiteMode()
        Specified by:
        getSameSiteMode in interface io.undertow.server.handlers.Cookie
      • setSameSiteMode

        public io.undertow.server.handlers.Cookie setSameSiteMode​(String mode)
        Specified by:
        setSameSiteMode in interface io.undertow.server.handlers.Cookie