public abstract class BaseTemplate extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
$0 |
protected String |
$1 |
protected String |
$10 |
protected String |
$11 |
protected String |
$12 |
protected String |
$13 |
protected String |
$14 |
protected String |
$15 |
protected String |
$16 |
protected String |
$17 |
protected String |
$18 |
protected String |
$19 |
protected String |
$2 |
protected String |
$20 |
protected String |
$3 |
protected String |
$4 |
protected String |
$5 |
protected String |
$6 |
protected String |
$7 |
protected String |
$8 |
protected String |
$9 |
int |
code |
String |
message |
static String |
NONE |
protected javax.servlet.http.HttpServletRequest |
request |
protected javax.servlet.http.HttpServletResponse |
response |
| Constructor and Description |
|---|
BaseTemplate() |
| Modifier and Type | Method and Description |
|---|---|
JsonResult |
execute()
Execute executeBody method and wrap result to a JsonResult result
|
Object |
executeBody()
The body method for template
|
Object |
getAttr(String attrKey)
Equal to getRequest().getAttribute(attrKey);
|
String |
getParam(String paramkey)
Equal to getRequest().getParameter(paramkey);
|
String[] |
getParamArray()
Pack all $1 , $2,...
|
Map<String,String> |
getParamMap()
Pack all $1 , $2, ...
|
javax.servlet.http.HttpServletRequest |
getRequest() |
javax.servlet.http.HttpServletResponse |
getResponse() |
javax.servlet.http.HttpSession |
getSession()
Equal to getRequest().getSession();
|
void |
initParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setRequest(javax.servlet.http.HttpServletRequest request) |
void |
setResponse(javax.servlet.http.HttpServletResponse response) |
public static final String NONE
public int code
public String message
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected String $0
protected String $1
protected String $2
protected String $3
protected String $4
protected String $5
protected String $6
protected String $7
protected String $8
protected String $9
protected String $10
protected String $11
protected String $12
protected String $13
protected String $14
protected String $15
protected String $16
protected String $17
protected String $18
protected String $19
protected String $20
public javax.servlet.http.HttpSession getSession()
public Map<String,String> getParamMap()
public String[] getParamArray()
public void initParams(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public Object executeBody()
public JsonResult execute()
public void setRequest(javax.servlet.http.HttpServletRequest request)
public void setResponse(javax.servlet.http.HttpServletResponse response)
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
Copyright © 2021. All rights reserved.