All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.cookies.Cookie.html Maven / Gradle / Ivy

The newest version!






Cookie (org.spincast:spincast-framework 0.9.28 API)












org.spincast.plugins.cookies

Class Cookie

    • Method Detail

      • getValue

        public String getValue()
        Description copied from interface: ICookie
        Gets the cookie value.
        Specified by:
        getValue in interface ICookie
      • setValue

        public void setValue(String value)
        Description copied from interface: ICookie
        Sets the cookie value.
        Specified by:
        setValue in interface ICookie
      • getPath

        public String getPath()
        Description copied from interface: ICookie
        Gets the cookie path.
        Specified by:
        getPath in interface ICookie
      • setPath

        public void setPath(String path)
        Description copied from interface: ICookie
        Sets the cookie path.
        Specified by:
        setPath in interface ICookie
      • getDomain

        public String getDomain()
        Description copied from interface: ICookie
        Gets the cookie domain.
        Specified by:
        getDomain in interface ICookie
      • setDomain

        public void setDomain(String domain)
        Description copied from interface: ICookie
        Sets the cookie domain.
        Specified by:
        setDomain in interface ICookie
      • getExpires

        public Date getExpires()
        Description copied from interface: ICookie
        Gets the date the cookie will expire at. If the date is in the past, the cookie will be deleted. If null the cookie will live for the current session (this is the default).
        Specified by:
        getExpires in interface ICookie
      • setExpires

        public void setExpires(Date expires)
        Description copied from interface: ICookie
        Sets the date the cookie will expire. If the date is in the past, the cookie will be deleted. If null the cookie will live for the current session (this is the default).
        Specified by:
        setExpires in interface ICookie
      • setExpiresUsingMaxAge

        public void setExpiresUsingMaxAge(Integer maxAge)
        Description copied from interface: ICookie
        Sets the number of seconds for a cookie to live. If maxAge < 0 : The "Expires date" will be in the past and the cookie will therefore be deleted. If maxAge == 0 : The "Expires date" will be null and the cookie will live for the session only. If maxAge > 0 : The "Expires date" will be the current date + 'maxAge' seconds.
        Specified by:
        setExpiresUsingMaxAge in interface ICookie
      • isExpired

        public boolean isExpired()
        Description copied from interface: ICookie
        Is this cookie expired?
        Specified by:
        isExpired in interface ICookie
      • isSecure

        public boolean isSecure()
        Description copied from interface: ICookie
        Is the "secure" feature on?
        Specified by:
        isSecure in interface ICookie
      • setSecure

        public void setSecure(boolean secure)
        Description copied from interface: ICookie
        Sets the "secure" feature on or off.
        Specified by:
        setSecure in interface ICookie
      • isHttpOnly

        public boolean isHttpOnly()
        Description copied from interface: ICookie
        Is the cookie availableto the server and not to javascript?
        Specified by:
        isHttpOnly in interface ICookie
      • setHttpOnly

        public void setHttpOnly(boolean httpOnly)
        Description copied from interface: ICookie
        Sets if the cookie is available only for to the server anbd not to javascript.
        Specified by:
        setHttpOnly in interface ICookie
      • getName

        public String getName()
        Description copied from interface: ICookie
        Gets the cookie name.
        Specified by:
        getName in interface ICookie
      • isDiscard

        public boolean isDiscard()
        Description copied from interface: ICookie
        Is this cookie to be discarded?
        Specified by:
        isDiscard in interface ICookie
      • getVersion

        public int getVersion()
        Description copied from interface: ICookie
        Gets the cookie version.
        Specified by:
        getVersion in interface ICookie

Copyright © 2016. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy