Package org.appng.api
Interface Request
-
- All Superinterfaces:
org.springframework.core.convert.ConversionService
,RequestContainer
,RequestSupport
,ValidationProvider
- All Known Implementing Classes:
ApplicationRequest
public interface Request extends RequestContainer, RequestSupport, ValidationProvider
ARequest
is the framework-internal representation of aHttpServletRequest
, wrapping the afore mentioned and adding framework-specific methods.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionEvaluator
getExpressionEvaluator()
Returns theExpressionEvaluator
for thisRequest
.Locale
getLocale()
ParameterSupport
getParameterSupportDollar()
Returns theParameterSupport
for thisRequest
.PermissionProcessor
getPermissionProcessor()
Returns thePermissionProcessor
for thisRequest
.Subject
getSubject()
List<String>
getUrlParameters()
Returns a list of URL-Parameters for a JSP-page, which are those path-elements appearing after the name of the JSP-page itself.org.springframework.http.HttpHeaders
headers()
Returns theHttpHeaders
for the underlyingHttpServletRequest
.boolean
isGet()
Checks whether thisRequest
originates of a HTTP GET-request.boolean
isPost()
Checks whether thisRequest
originates of a HTTP POST-request.boolean
isRedirect()
Checks whether a redirect-target has been set for thisRequest
.-
Methods inherited from interface org.springframework.core.convert.ConversionService
canConvert, canConvert, convert, convert
-
Methods inherited from interface org.appng.forms.RequestContainer
getFormUploads, getFormUploads, getHost, getParameter, getParameterList, getParameterNames, getParameters, getParametersList, hasParameter
-
Methods inherited from interface org.appng.api.RequestSupport
addErrorMessage, addErrorMessage, fillBindObject, getBindObject, getEnvironment, getFieldConverter, getMessage, getMessageSource, handleException, setPropertyValue, setPropertyValues
-
Methods inherited from interface org.appng.api.ValidationProvider
addValidationMetaData, validateBean, validateBean, validateField
-
-
-
-
Method Detail
-
getExpressionEvaluator
ExpressionEvaluator getExpressionEvaluator()
Returns theExpressionEvaluator
for thisRequest
.- Returns:
- the
ExpressionEvaluator
-
getParameterSupportDollar
ParameterSupport getParameterSupportDollar()
Returns theParameterSupport
for thisRequest
.- Returns:
- the
ParameterSupport
-
getPermissionProcessor
PermissionProcessor getPermissionProcessor()
Returns thePermissionProcessor
for thisRequest
.- Returns:
- the
PermissionProcessor
-
getUrlParameters
List<String> getUrlParameters()
Returns a list of URL-Parameters for a JSP-page, which are those path-elements appearing after the name of the JSP-page itself. So if the page is namedcontact
and the path is/contact/europe/germany
, the resultingList
would be equal toArrays.asList("europe","germany")
.- Returns:
- the URL-Parameters for a JSP-Page
- See Also:
Path.getJspUrlParameters()
-
isRedirect
boolean isRedirect()
Checks whether a redirect-target has been set for thisRequest
.- Returns:
true
if a redirect-target has been set for thisRequest
,false
otherwise
-
isGet
boolean isGet()
Checks whether thisRequest
originates of a HTTP GET-request.- Returns:
true
if thisRequest
originates of a HTTP GET-request,false
otherwise
-
isPost
boolean isPost()
Checks whether thisRequest
originates of a HTTP POST-request.- Returns:
true
if thisRequest
originates of a HTTP POST-request,false
otherwise
-
headers
org.springframework.http.HttpHeaders headers()
Returns theHttpHeaders
for the underlyingHttpServletRequest
.- Returns:
- the headers
-
-