public abstract class MinimalRequestHandler extends Object implements com.v5analytics.webster.RequestResponseHandler
Configuration
to be injected.| Modifier | Constructor and Description |
|---|---|
protected |
MinimalRequestHandler(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAttributeString(javax.servlet.http.HttpServletRequest request,
String name) |
protected ResourceBundle |
getBundle(javax.servlet.http.HttpServletRequest request) |
protected Configuration |
getConfiguration() |
protected Locale |
getLocale(javax.servlet.http.HttpServletRequest request) |
protected String |
getOptionalParameter(javax.servlet.http.HttpServletRequest request,
String parameterName)
Attempts to extract the specified parameter from the provided request, if available
|
protected String[] |
getOptionalParameterArray(javax.servlet.http.HttpServletRequest request,
String parameterName) |
protected String[] |
getOptionalParameterAsStringArray(javax.servlet.http.HttpServletRequest request,
String parameterName) |
protected boolean |
getOptionalParameterBoolean(javax.servlet.http.HttpServletRequest request,
String parameterName,
boolean defaultValue) |
protected Boolean |
getOptionalParameterBoolean(javax.servlet.http.HttpServletRequest request,
String parameterName,
Boolean defaultValue) |
protected Double |
getOptionalParameterDouble(javax.servlet.http.HttpServletRequest request,
String parameterName,
Double defaultValue) |
protected EnumSet<org.vertexium.FetchHint> |
getOptionalParameterFetchHints(javax.servlet.http.HttpServletRequest request,
String parameterName,
EnumSet<org.vertexium.FetchHint> defaultFetchHints) |
protected Float |
getOptionalParameterFloat(javax.servlet.http.HttpServletRequest request,
String parameterName,
Float defaultValue) |
protected Integer |
getOptionalParameterInt(javax.servlet.http.HttpServletRequest request,
String parameterName,
Integer defaultValue) |
protected Long |
getOptionalParameterLong(javax.servlet.http.HttpServletRequest request,
String parameterName,
long defaultValue) |
protected Long |
getOptionalParameterLong(javax.servlet.http.HttpServletRequest request,
String parameterName,
Long defaultValue) |
protected String[] |
getParameterValues(javax.servlet.http.HttpServletRequest request,
String parameterName,
boolean optional) |
protected String |
getRequiredParameter(javax.servlet.http.HttpServletRequest request,
String parameterName)
Attempts to extract the specified parameter from the provided request
|
protected String[] |
getRequiredParameterArray(javax.servlet.http.HttpServletRequest request,
String parameterName) |
protected double |
getRequiredParameterAsDouble(javax.servlet.http.HttpServletRequest request,
String parameterName)
Attempts to extract the specified parameter from the provided request and convert it to a double value
|
protected int |
getRequiredParameterAsInt(javax.servlet.http.HttpServletRequest request,
String parameterName)
Attempts to extract the specified parameter from the provided request and convert it to a int value
|
protected long |
getRequiredParameterAsLong(javax.servlet.http.HttpServletRequest request,
String parameterName)
Attempts to extract the specified parameter from the provided request and convert it to a long value
|
protected String |
getString(javax.servlet.http.HttpServletRequest request,
String key) |
protected WebApp |
getWebApp(javax.servlet.http.HttpServletRequest request) |
protected MinimalRequestHandler(Configuration configuration)
protected Configuration getConfiguration()
protected WebApp getWebApp(javax.servlet.http.HttpServletRequest request)
protected Locale getLocale(javax.servlet.http.HttpServletRequest request)
protected ResourceBundle getBundle(javax.servlet.http.HttpServletRequest request)
protected String getRequiredParameter(javax.servlet.http.HttpServletRequest request, String parameterName)
request - The request instance containing the parameterparameterName - The name of the parameter to extractRuntimeException - Thrown if the required parameter was not in the requestprotected String[] getOptionalParameterArray(javax.servlet.http.HttpServletRequest request, String parameterName)
protected String[] getRequiredParameterArray(javax.servlet.http.HttpServletRequest request, String parameterName)
protected Long getOptionalParameterLong(javax.servlet.http.HttpServletRequest request, String parameterName, long defaultValue)
protected Long getOptionalParameterLong(javax.servlet.http.HttpServletRequest request, String parameterName, Long defaultValue)
protected Integer getOptionalParameterInt(javax.servlet.http.HttpServletRequest request, String parameterName, Integer defaultValue)
protected EnumSet<org.vertexium.FetchHint> getOptionalParameterFetchHints(javax.servlet.http.HttpServletRequest request, String parameterName, EnumSet<org.vertexium.FetchHint> defaultFetchHints)
protected boolean getOptionalParameterBoolean(javax.servlet.http.HttpServletRequest request,
String parameterName,
boolean defaultValue)
protected Boolean getOptionalParameterBoolean(javax.servlet.http.HttpServletRequest request, String parameterName, Boolean defaultValue)
protected Double getOptionalParameterDouble(javax.servlet.http.HttpServletRequest request, String parameterName, Double defaultValue)
protected Float getOptionalParameterFloat(javax.servlet.http.HttpServletRequest request, String parameterName, Float defaultValue)
protected long getRequiredParameterAsLong(javax.servlet.http.HttpServletRequest request,
String parameterName)
request - The request instance containing the parameterparameterName - The name of the parameter to extractRuntimeException - Thrown if the required parameter was not in the requestprotected int getRequiredParameterAsInt(javax.servlet.http.HttpServletRequest request,
String parameterName)
request - The request instance containing the parameterparameterName - The name of the parameter to extractRuntimeException - Thrown if the required parameter was not in the requestprotected double getRequiredParameterAsDouble(javax.servlet.http.HttpServletRequest request,
String parameterName)
request - The request instance containing the parameterparameterName - The name of the parameter to extractRuntimeException - Thrown if the required parameter was not in the requestprotected String getOptionalParameter(javax.servlet.http.HttpServletRequest request, String parameterName)
request - The request instance containing the parameterparameterName - The name of the parameter to extractprotected String[] getOptionalParameterAsStringArray(javax.servlet.http.HttpServletRequest request, String parameterName)
protected String[] getParameterValues(javax.servlet.http.HttpServletRequest request, String parameterName, boolean optional)
Copyright © 2013–2016 V5 Analytics. All rights reserved.