public abstract class AbstractPageHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractPageHandler.InvalidParametersException
Indicates that parameters have failed validation.
|
static class |
AbstractPageHandler.Message
Set one of these on the session, so it can be interpreted and displayed
at the next request.
|
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
ctx |
protected DataPropertyStatementDao |
dpsDao |
protected I18nBundle |
i18n |
protected IndividualDao |
indDao |
protected ObjectPropertyStatementDao |
opsDao |
protected org.apache.jena.ontology.OntModel |
unionModel |
protected UserAccountsDao |
userAccountsDao |
protected org.apache.jena.ontology.OntModel |
userAccountsModel |
protected VClassDao |
vclassDao |
protected VitroRequest |
vreq |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPageHandler(VitroRequest vreq) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyMessage(javax.servlet.http.HttpServletRequest req,
Map<String,Object> body)
If a Message has been set in the session, get it, store its info in the
body map under "message", and remove it from the session, so it will not
be displayed again.
|
protected int |
getIntegerParameter(String key,
int defaultValue) |
protected String |
getStringParameter(String key,
String defaultValue) |
protected List<String> |
getStringParameters(String key) |
protected boolean |
isFlagOnRequest(String key)
Check for the presence of a parameter, regardless of its value, even if
it's an empty string.
|
protected boolean |
isParameterAsExpected(String key,
String expected)
Treat the presence of a certain parameter, with a desired value, as a
boolean flag.
|
protected final VitroRequest vreq
protected final I18nBundle i18n
protected final javax.servlet.ServletContext ctx
protected final org.apache.jena.ontology.OntModel userAccountsModel
protected final org.apache.jena.ontology.OntModel unionModel
protected final UserAccountsDao userAccountsDao
protected final VClassDao vclassDao
protected final IndividualDao indDao
protected final DataPropertyStatementDao dpsDao
protected final ObjectPropertyStatementDao opsDao
protected AbstractPageHandler(VitroRequest vreq)
protected int getIntegerParameter(String key, int defaultValue)
protected boolean isFlagOnRequest(String key)
protected boolean isParameterAsExpected(String key, String expected)
Copyright © 2022. All rights reserved.