|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.html.form.persistence.CookieValuePersister
public class CookieValuePersister
Helper class to simplify Cookie handling in combination with Wicket
Constructor Summary | |
---|---|
CookieValuePersister()
Construct. |
|
CookieValuePersister(CookieValuePersisterSettings settings)
Construct. |
Method Summary | |
---|---|
void |
clear(FormComponent<?> formComponent)
Remove the key/value associated witht the formComponent |
void |
clear(String key)
Remove the key/value pair |
protected String |
getSaveKey(String key)
Make sure the 'key' does not contain any illegal chars. |
void |
load(FormComponent<?> formComponent)
Retrieve the persisted value and if found update the form components model |
String |
load(String key)
Retrieve the key from the persistence store |
void |
save(FormComponent<?> formComponent)
Convenience method for FormComponent. |
void |
save(String key,
String value)
Saves the key/value pair |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CookieValuePersister()
public CookieValuePersister(CookieValuePersisterSettings settings)
settings
- Method Detail |
---|
public void clear(String key)
IValuePersister
clear
in interface IValuePersister
key
- The key to identify the entryIValuePersister.clear(String)
public void clear(FormComponent<?> formComponent)
IValuePersister
clear
in interface IValuePersister
IValuePersister.clear(org.apache.wicket.markup.html.form.FormComponent)
public String load(String key)
IValuePersister
load
in interface IValuePersister
key
- The key to identify the entry
IValuePersister.load(String)
public void load(FormComponent<?> formComponent)
IValuePersister
load
in interface IValuePersister
IValuePersister.load(org.apache.wicket.markup.html.form.FormComponent)
public void save(String key, String value)
IValuePersister
save
in interface IValuePersister
key
- The key to identify the entryvalue
- The valueIValuePersister.save(String, String)
public void save(FormComponent<?> formComponent)
IValuePersister
save
in interface IValuePersister
IValuePersister.save(org.apache.wicket.markup.html.form.FormComponent)
protected String getSaveKey(String key)
key
- The key to be validated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |