|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.internal.AbstractEventContext
org.apache.tapestry5.internal.URLEventContext
public class URLEventContext
Implementation based on values extracted from the URL (an event context, or a page activation
context) that uses a ContextValueEncoder
to convert from
string values to the desired values.
Constructor Summary | |
---|---|
URLEventContext(ContextValueEncoder valueEncoder,
java.lang.String[] values)
|
Method Summary | ||
---|---|---|
|
get(java.lang.Class<T> desiredType,
int index)
Extracts a parameter value and coerces or decodes it to the desired type. |
|
int |
getCount()
Returns the number of parameter values that can be extracted. |
Methods inherited from class org.apache.tapestry5.internal.AbstractEventContext |
---|
toString, toStrings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URLEventContext(ContextValueEncoder valueEncoder, java.lang.String[] values)
Method Detail |
---|
public int getCount()
EventContext
public <T> T get(java.lang.Class<T> desiredType, int index)
EventContext
desiredType
- the type of value requiredindex
- identifies which parameter value to extract
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |