public final class RequestImpl extends Object implements Request
Constructor and Description |
---|
RequestImpl(PageContext pc,
Struct attributes)
constructor of the class
|
RequestImpl(Struct attributes,
Query query,
Struct settings)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
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
|
public RequestImpl(PageContext pc, Struct attributes) throws PageException
pc
- attributes
- PageException
public RequestImpl(Struct attributes, Query query, Struct settings)
attributes
- query
- settings
- public boolean attributeExists(String key)
Request
attributeExists
in interface Request
key
- key to checkpublic boolean debug()
public String getAttribute(String key)
Request
getAttribute
in interface Request
key
- key to getpublic String getAttribute(String key, String defaultValue)
Request
getAttribute
in interface Request
key
- key to getdefaultValue
- return this value if key not existpublic String[] getAttributeList()
Request
getAttributeList
in interface Request
public int getIntAttribute(String key) throws NumberFormatException
Request
getIntAttribute
in interface Request
key
- key to getNumberFormatException
public int getIntAttribute(String key, int defaultValue)
Request
getIntAttribute
in interface Request
key
- key to getdefaultValue
- return this value if key not existpublic String getSetting(String key)
Request
getSetting
in interface Request
Copyright © 2015 Lucee