Java Reference
In-Depth Information
The
setSecure()
method indicates to the user agent that the cookie should only be transmitted
using a secure protocol.
setSecure()
returns no value and throws no exceptions.
It has one parameter:
•
boolean
The
getSecure()
Method
public boolean getSecure()
The
getSecure()
method returns
true
if the cookie can only be transmitted using a secure
protocol.
getSecure()
has no parameters and throws no exceptions.
It returns this value:
•
boolean
The
getName()
Method
public java.lang.String getName()
The
getName()
method returns the name of the cookie.
getName()
has no parameters and
throws no exceptions.
It returns this value:
•
java.lang.String
The
setValue()
Method
public void setValue(java.lang.String value)
The
setValue()
method sets the value of the cookie.
setValue()
returns no value and throws
no exceptions.
It has one parameter:
•
java.lang.String
The
getValue()
Method
public java.lang.String getValue()
The
getValue()
method returns the value of the cookie.
getValue()
has no parameters and
throws no exceptions.
It returns this value:
•
java.lang.String