T - Type of the object to store in the RequestCycle.public class RequestCycleLocal<T> extends Object
| Constructor and Description |
|---|
RequestCycleLocal(org.apache.wicket.MetaDataKey<T> key) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
retrieves the object from the RequestCycle
|
protected org.apache.wicket.request.cycle.RequestCycle |
getRequestCycle()
subclasses migt have a different idea how to get the requestCycle.
|
void |
remove()
removes the object from the request cycle.
|
void |
set(T t)
Set the given object into the RequestCycle's Metadata with the key pass
on construction.
|
public RequestCycleLocal(org.apache.wicket.MetaDataKey<T> key) throws NullPointerException
key - used to store the RequestCycleLocal-ObjectNullPointerException - if the given key is nullprotected final org.apache.wicket.request.cycle.RequestCycle getRequestCycle()
throws IllegalStateException
IllegalStateException - if there currently is no active RequestCycle. (Remember to
use WicketTester in unit-tests)public void set(T t) throws NullPointerException
t - the object to setNullPointerException - if the given object is null. (use remove instead)public T get()
public void remove()
Copyright © 2012–2016 wicketeer.org. All rights reserved.