public abstract class AbstractAjaxResponder extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAjaxResponder.JsonArrayParser
AJAX responders can use a parser that extends this class.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EMPTY_RESPONSE |
protected IndividualDao |
indDao |
protected javax.servlet.http.HttpServletResponse |
resp |
protected javax.servlet.http.HttpServlet |
servlet |
protected UserAccountsDao |
uaDao |
protected VitroRequest |
vreq |
| Constructor and Description |
|---|
AbstractAjaxResponder(javax.servlet.http.HttpServlet servlet,
VitroRequest vreq,
javax.servlet.http.HttpServletResponse resp) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
assembleJsonResponse(List<Map<String,String>> maps)
Assemble a list of maps into a single String representing a JSON array of
objects with fields.
|
protected String |
getStringParameter(String key,
String defaultValue) |
protected Collection<String> |
getStringParameters(String key) |
protected abstract String |
prepareResponse() |
void |
processRequest() |
protected static final String EMPTY_RESPONSE
protected final javax.servlet.http.HttpServlet servlet
protected final VitroRequest vreq
protected final javax.servlet.http.HttpServletResponse resp
protected final IndividualDao indDao
protected final UserAccountsDao uaDao
public AbstractAjaxResponder(javax.servlet.http.HttpServlet servlet,
VitroRequest vreq,
javax.servlet.http.HttpServletResponse resp)
public final void processRequest()
protected abstract String prepareResponse() throws IOException, JSONException
IOExceptionJSONExceptionprotected Collection<String> getStringParameters(String key)
Copyright © 2016. All rights reserved.