Package org.loboevolution.net
Class Cookie
java.lang.Object
org.loboevolution.net.AbstractBean
org.loboevolution.net.NameValuePair
org.loboevolution.net.Cookie
The Class Cookie.
-
Field Summary
Fields inherited from class org.loboevolution.net.NameValuePair
name, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the encoded name.Gets the encoded value.void
setComment
(String comment) Sets the comment.void
Sets the domain.void
setHttpOnly
(boolean httpOnly) Setter for the field httpOnly.void
setMaxAge
(int age) Sets the max age.void
Sets the path.void
setSecure
(boolean secure) Sets the secure.void
setVersion
(int version) Sets the version.Methods inherited from class org.loboevolution.net.NameValuePair
setName, setValue
Methods inherited from class org.loboevolution.net.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Constructor Details
-
Method Details
-
getEncodedName
Gets the encoded name.- Returns:
- the encoded name
- Throws:
UnsupportedEncodingException
- if any.
-
getEncodedValue
Gets the encoded value.- Returns:
- the encoded value
- Throws:
UnsupportedEncodingException
- if any.
-
setComment
Sets the comment.- Parameters:
comment
- the new comment
-
setDomain
Sets the domain.- Parameters:
domain
- the new domain
-
setMaxAge
public void setMaxAge(int age) Sets the max age.- Parameters:
age
- the new max age
-
setPath
Sets the path.- Parameters:
path
- the new path
-
setSecure
public void setSecure(boolean secure) Sets the secure.- Parameters:
secure
- the new secure
-
setVersion
public void setVersion(int version) Sets the version.- Parameters:
version
- the new version
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) Setter for the field httpOnly.
- Parameters:
httpOnly
- a boolean.
-