org.apache.wicket.jmx
Class CookieValuePersisterSettings

java.lang.Object
  extended by org.apache.wicket.jmx.CookieValuePersisterSettings
All Implemented Interfaces:
CookieValuePersisterSettingsMBean

public class CookieValuePersisterSettings
extends java.lang.Object
implements CookieValuePersisterSettingsMBean

Exposes Application related functionality for JMX.

Author:
eelcohillenius

Constructor Summary
CookieValuePersisterSettings(Application application)
          Create.
 
Method Summary
 java.lang.String getComment()
          Gets the cookie comment.
 java.lang.String getDomain()
          Gets the cookie domain name.
 int getMaxAge()
          Gets the max age.
 boolean getSecure()
          Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol.
 int getVersion()
          Returns the version of the protocol this cookie complies with.
 void setComment(java.lang.String comment)
          Sets the cookie comment.
 void setDomain(java.lang.String domain)
          Sets the cookie domain name.
 void setMaxAge(int maxAge)
          Sets the maximum age of the cookie in seconds.
 void setSecure(boolean secure)
          Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.
 void setVersion(int version)
          Sets the version of the cookie protocol this cookie complies with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookieValuePersisterSettings

public CookieValuePersisterSettings(Application application)
Create.

Parameters:
application -
Method Detail

getComment

public java.lang.String getComment()
Description copied from interface: CookieValuePersisterSettingsMBean
Gets the cookie comment.

Specified by:
getComment in interface CookieValuePersisterSettingsMBean
Returns:
the cookie comment
See Also:
CookieValuePersisterSettingsMBean.getComment()

getDomain

public java.lang.String getDomain()
Description copied from interface: CookieValuePersisterSettingsMBean
Gets the cookie domain name.

Specified by:
getDomain in interface CookieValuePersisterSettingsMBean
Returns:
the cookie domain name
See Also:
CookieValuePersisterSettingsMBean.getDomain()

getMaxAge

public int getMaxAge()
Description copied from interface: CookieValuePersisterSettingsMBean
Gets the max age. After

Specified by:
getMaxAge in interface CookieValuePersisterSettingsMBean
Returns:
the max age
See Also:
CookieValuePersisterSettingsMBean.getMaxAge()

getSecure

public boolean getSecure()
Description copied from interface: CookieValuePersisterSettingsMBean
Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol.

Specified by:
getSecure in interface CookieValuePersisterSettingsMBean
Returns:
whether this cookie is secure
See Also:
CookieValuePersisterSettingsMBean.getSecure()

getVersion

public int getVersion()
Description copied from interface: CookieValuePersisterSettingsMBean
Returns the version of the protocol this cookie complies with. Version 1 complies with RFC 2109, and version 0 complies with the original cookie specification drafted by Netscape. Cookies provided by a browser use and identify the browser's cookie version.

Specified by:
getVersion in interface CookieValuePersisterSettingsMBean
Returns:
0 if the cookie complies with the original Netscape specification; 1 if the cookie complies with RFC 2109
See Also:
CookieValuePersisterSettingsMBean.getVersion()

setComment

public void setComment(java.lang.String comment)
Description copied from interface: CookieValuePersisterSettingsMBean
Sets the cookie comment.

Specified by:
setComment in interface CookieValuePersisterSettingsMBean
Parameters:
comment - the cookie comment
See Also:
CookieValuePersisterSettingsMBean.setComment(java.lang.String)

setDomain

public void setDomain(java.lang.String domain)
Description copied from interface: CookieValuePersisterSettingsMBean
Sets the cookie domain name.

Specified by:
setDomain in interface CookieValuePersisterSettingsMBean
Parameters:
domain - the cookie domain name
See Also:
CookieValuePersisterSettingsMBean.setDomain(java.lang.String)

setMaxAge

public void setMaxAge(int maxAge)
Description copied from interface: CookieValuePersisterSettingsMBean
Sets the maximum age of the cookie in seconds.

Specified by:
setMaxAge in interface CookieValuePersisterSettingsMBean
Parameters:
maxAge - the max age in secs.
See Also:
CookieValuePersisterSettingsMBean.setMaxAge(int)

setSecure

public void setSecure(boolean secure)
Description copied from interface: CookieValuePersisterSettingsMBean
Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.

Specified by:
setSecure in interface CookieValuePersisterSettingsMBean
Parameters:
secure - if true, sends the cookie from the browser to the server using only when using a secure protocol; if false, sent on any protocol
See Also:
CookieValuePersisterSettingsMBean.setSecure(boolean)

setVersion

public void setVersion(int version)
Description copied from interface: CookieValuePersisterSettingsMBean
Sets the version of the cookie protocol this cookie complies with. Version 0 complies with the original Netscape cookie specification. Version 1 complies with RFC 2109.
Since RFC 2109 is still somewhat new, consider version 1 as experimental; do not use it yet on production sites.

Specified by:
setVersion in interface CookieValuePersisterSettingsMBean
Parameters:
version - 0 if the cookie should comply with the original Netscape specification; 1 if the cookie should comply with RFC 2109
See Also:
CookieValuePersisterSettingsMBean.setVersion(int)


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.