Constructor and Description |
---|
DebugRequest(java.util.Hashtable attributes)
constructor of the class
|
DebugRequest(java.util.Hashtable attributes,
Query query)
constructor of the class
|
DebugRequest(java.util.Hashtable attributes,
Query query,
java.util.Hashtable settings)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
boolean |
attributeExists(java.lang.String key)
checks if attribute with this key exists
|
boolean |
debug() |
java.lang.String |
getAttribute(java.lang.String key)
returns attribute matching key
|
java.lang.String |
getAttribute(java.lang.String key,
java.lang.String defaultValue)
returns attribute matching key
|
java.lang.String[] |
getAttributeList()
return all sattribute keys
|
int |
getIntAttribute(java.lang.String key)
returns attribute as int matching key
|
int |
getIntAttribute(java.lang.String key,
int defaultValue)
returns attribute as int matching key
|
Query |
getQuery()
return given query
|
java.lang.String |
getSetting(java.lang.String key)
returns all the settings
|
public DebugRequest(java.util.Hashtable attributes)
attributes
- public DebugRequest(java.util.Hashtable attributes, Query query)
attributes
- query
- public DebugRequest(java.util.Hashtable attributes, Query query, java.util.Hashtable settings)
attributes
- query
- settings
- public boolean attributeExists(java.lang.String key)
Request
attributeExists
in interface Request
key
- key to checkRequest.attributeExists(java.lang.String)
public boolean debug()
debug
in interface Request
Request.debug()
public java.lang.String getAttribute(java.lang.String key, java.lang.String defaultValue)
Request
getAttribute
in interface Request
key
- key to getdefaultValue
- return this value if key not existRequest.getAttribute(java.lang.String, java.lang.String)
public java.lang.String getAttribute(java.lang.String key)
Request
getAttribute
in interface Request
key
- key to getRequest.getAttribute(java.lang.String)
public java.lang.String[] getAttributeList()
Request
getAttributeList
in interface Request
Request.getAttributeList()
public int getIntAttribute(java.lang.String key, int defaultValue)
Request
getIntAttribute
in interface Request
key
- key to getdefaultValue
- return this value if key not existRequest.getIntAttribute(java.lang.String, int)
public int getIntAttribute(java.lang.String key) throws java.lang.NumberFormatException
Request
getIntAttribute
in interface Request
key
- key to getjava.lang.NumberFormatException
Request.getIntAttribute(java.lang.String)
public Query getQuery()
Request
getQuery
in interface Request
Request.getQuery()
public java.lang.String getSetting(java.lang.String key)
Request
getSetting
in interface Request
Request.getSetting(java.lang.String)