Class BaseServletRequest
- java.lang.Object
-
- de.kosmos_lab.web.server.servlets.MyHttpServletRequest
-
- de.kosmos_lab.web.server.servlets.BaseServletRequest
-
public class BaseServletRequest extends MyHttpServletRequest
"small" wrapper for our Requests primarily used to cache the body / jsonobject body objects and allow the direct getting of ints etc
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description BaseServletRequest(jakarta.servlet.http.HttpServletRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.JSONArraygetJSONArray(String key)org.json.JSONObjectgetJSONObject(String key)-
Methods inherited from class de.kosmos_lab.web.server.servlets.MyHttpServletRequest
checkParameter, getAttribute, getBody, getBodyAsJSONArray, getBodyAsJSONObject, getBoolean, getBoolean, getDouble, getDouble, getInt, getInt, getParameter, getParameter, getRequest, getString, getString, getUser
-
-
-
-
Method Detail
-
getJSONObject
public org.json.JSONObject getJSONObject(String key) throws ParameterNotFoundException
- Throws:
ParameterNotFoundException
-
getJSONArray
public org.json.JSONArray getJSONArray(String key) throws ParameterNotFoundException
- Throws:
ParameterNotFoundException
-
-