|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.cfx.RequestImpl
public final class RequestImpl
Implementation of the CFX Request Interface
Constructor Summary | |
---|---|
RequestImpl(PageContext pc,
Struct attributes)
constructor of the class |
|
RequestImpl(Struct attributes,
Query query,
Struct settings)
constructor of the class |
Method Summary | |
---|---|
boolean |
attributeExists(String key)
checks if attribute with this key exists |
boolean |
debug()
|
String |
getAttribute(String key)
returns attribute matching key |
String |
getAttribute(String key,
String defaultValue)
returns attribute matching key |
String[] |
getAttributeList()
return all sattribute keys |
int |
getIntAttribute(String key)
returns attribute as int matching key |
int |
getIntAttribute(String key,
int defaultValue)
returns attribute as int matching key |
Query |
getQuery()
return given query |
String |
getSetting(String key)
returns all the settings |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestImpl(PageContext pc, Struct attributes) throws PageException
pc
- attributes
-
PageException
public RequestImpl(Struct attributes, Query query, Struct settings)
attributes
- query
- settings
- Method Detail |
---|
public boolean attributeExists(String key)
Request
attributeExists
in interface Request
key
- key to check
Request.attributeExists(java.lang.String)
public boolean debug()
debug
in interface Request
Request.debug()
public String getAttribute(String key)
Request
getAttribute
in interface Request
key
- key to get
Request.getAttribute(java.lang.String)
public String getAttribute(String key, String defaultValue)
Request
getAttribute
in interface Request
key
- key to getdefaultValue
- return this value if key not exists
Request.getAttribute(java.lang.String, java.lang.String)
public String[] getAttributeList()
Request
getAttributeList
in interface Request
Request.getAttributeList()
public int getIntAttribute(String key) throws NumberFormatException
Request
getIntAttribute
in interface Request
key
- key to get
NumberFormatException
Request.getIntAttribute(java.lang.String)
public int getIntAttribute(String key, int defaultValue)
Request
getIntAttribute
in interface Request
key
- key to getdefaultValue
- return this value if key not exists
Request.getIntAttribute(java.lang.String, int)
public Query getQuery()
Request
getQuery
in interface Request
Request.getQuery()
public String getSetting(String key)
Request
getSetting
in interface Request
Request.getSetting(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |