|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openfaces.util.Faces
public class Faces
Class intended to retrieve various parameters from request.
Method Summary | ||
---|---|---|
static java.lang.String |
requestParam(java.lang.String requestParameterMapKey)
Retrieves a value from the request parameters map. |
|
static
|
requestParam(java.lang.String paramName,
java.lang.Class<T> expectedType)
Retrieves a value from the request parameters map and converts it to the specified type. |
|
static java.lang.Object |
var(java.lang.String varName)
Returns the value of the specified variable in the current expression context. |
|
static
|
var(java.lang.String varName,
java.lang.Class<T> expectedType)
Returns the value of the specified variable in the current expression context and casts it to the specified class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T var(java.lang.String varName, java.lang.Class<T> expectedType) throws java.lang.ClassCastException
varName
- variable nameexpectedType
- expected variable type
java.lang.ClassCastException
- if the variable value is not of the expected typepublic static java.lang.Object var(java.lang.String varName)
varName
- variable name
java.lang.ClassCastException
- if the variable value is not of the expected typepublic static <T> T requestParam(java.lang.String paramName, java.lang.Class<T> expectedType)
paramName
- - request parameter nameexpectedType
- - expected parameter type
More about request parameters map
public static java.lang.String requestParam(java.lang.String requestParameterMapKey)
requestParameterMapKey
- - key
More about request parameters map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |