Author: shane.bryzak(a)jboss.com
Date: 2009-05-11 20:52:25 -0400 (Mon, 11 May 2009)
New Revision: 10880
Modified:
modules/trunk/view/src/main/java/org/jboss/seam/view/Selector.java
Log:
make cookie name a base property
Modified: modules/trunk/view/src/main/java/org/jboss/seam/view/Selector.java
===================================================================
--- modules/trunk/view/src/main/java/org/jboss/seam/view/Selector.java 2009-05-12 00:22:42
UTC (rev 10879)
+++ modules/trunk/view/src/main/java/org/jboss/seam/view/Selector.java 2009-05-12 00:52:25
UTC (rev 10880)
@@ -35,6 +35,11 @@
private String cookiePath= "/";
/**
+ * The name of the cookie
+ */
+ private String cookieName;
+
+ /**
* Is the cookie enabled?
*
* @return false by default
@@ -94,11 +99,26 @@
}
/**
- * Override to define the cookie name
+ * Returns the name of the cookie.
+ *
+ * @return String The name of the cookie
*/
- protected abstract String getCookieName();
+ public String getCookieName()
+ {
+ return cookieName;
+ }
/**
+ * Sets the cookie name.
+ *
+ * @param cookieName String The name of the cookie
+ */
+ public void setCookieName(String cookieName)
+ {
+ this.cookieName = cookieName;
+ }
+
+ /**
* Get the value of the cookie, if this selector is enabled
*
* @return String The value of the cookie if this selector is enabled, otherwise
null.
Show replies by date