public interface RequestProcessor
Application
of the requested Site
Platform
-object
Template
of the Site
to that object
Modifier and Type | Method and Description |
---|---|
Integer |
getContentLength()
Returns the content-length of the response
|
String |
getContentType()
Returns the content-type of the response
|
void |
init(HttpServletRequest servletRequest,
HttpServletResponse servletResponse,
PathInfo pathInfo,
String templateDir)
Initializes the
RequestProcessor . |
boolean |
isRedirect()
Returns
true if a redirect has been send while processing the request, false otherwise. |
Platform |
processPlatform(Site site)
Processes the request, but without applying the template.
|
String |
processWithTemplate(Site site)
Processes the request, including the processing of the template.
|
Platform processPlatform(Site site) throws InvalidConfigurationException
init(HttpServletRequest, HttpServletResponse, PathInfo, String)
must have been called before.site
- the Site
for which the process the requestPlatform
representing the result of calling the Site
's Application
InvalidConfigurationException
- if something goes wrong while processing the requestprocessWithTemplate(Site)
String processWithTemplate(Site site) throws InvalidConfigurationException
init(HttpServletRequest, HttpServletResponse, PathInfo, String)
must have been called before.site
- the Site
for which the process the requestApplication
and applying the Template
. This should then be
written to the HttpServletResponse
InvalidConfigurationException
- if something goes wrong while processing the requestprocessPlatform(Site)
String getContentType()
Integer getContentLength()
void init(HttpServletRequest servletRequest, HttpServletResponse servletResponse, PathInfo pathInfo, String templateDir)
RequestProcessor
.servletRequest
- the current HttpServletRequest
servletResponse
- the current HttpServletResponse
pathInfo
- the current PathInfo
templateDir
- the absolute path to the directory where the active template of the Site
residesboolean isRedirect()
true
if a redirect has been send while processing the request, false
otherwise.Copyright © 2011–2017 aiticon GmbH. All rights reserved.