Package com.aducid.web.controller
Class WebPlatformController
java.lang.Object
com.aducid.web.controller.ControllerBase
com.aducid.web.controller.AuthenticationController
com.aducid.web.controller.WebPlatformController
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.web.context.ServletContextAware
- Direct Known Subclasses:
WebPlatformControllerRootDefault
public class WebPlatformController extends AuthenticationController
Web platform controller containing basic pages mappings, which are available on all ADUCID Web Platform based controllers. Pages are:
authenticatePage
- request to start authentication, forwards user to generic operation page /aducid-resources/genericOperation.jsplogoutPage
- response to user logout, forwards user to logout page /aducid-resources/logout.jsperrorPage
- response to error, invalidates session and forwards user to error page /aducid-resources/error.jspguiJson
- returns localized resources/gui.json file to localize GUI texts
Created 21. 10. 2016 8:27:41
- Author:
- Radek Jira
-
Constructor Summary
Constructors Constructor Description WebPlatformController()
-
Method Summary
Modifier and Type Method Description void
authenticatePage(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
Forwards user to /aducid-resources/genericOperation.jsp to start authenticate operation.void
errorPage(java.lang.String id, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
Forwards user to /aducid-resources/error.jsp.protected java.util.Map<java.lang.String,java.lang.String>
getGuiJsonAsMap(java.util.Locale locale)
Returns JSON file to localize web GUI as map.org.springframework.http.ResponseEntity<byte[]>
guiJson(java.util.Locale locale)
Returns JSON file to localize web GUI.void
logoutPage(java.lang.String id, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
Forwards user to /aducid-resources/logout.jsp.Methods inherited from class com.aducid.web.controller.AuthenticationController
authenticate, authenticateCheck, binderLogout, buildPrincipal, checkAccess, checkPersonalFactor, checkProofing, checkResult, fixateSession, getAuthId, getAuthKey, getLoggedInPage, getLogoutPage, getPrincipal, getVerifiedLF, invalidate, isSessionValid, logout, processResponse, proxy, setErrorPage, setLoggedInPage, setLogoutPage, setRedirectUrl
Methods inherited from class com.aducid.web.controller.ControllerBase
afterCheck, afterError, appendId, beforeErrorRedirect, beforeLoggedInRedirect, beforeLogoutRedirect, checkAnnotationConsistency, forwardToAducidResourcesPage, generateId, getAducidBinder, getAducidResources, getAdvancedClient, getAimUrl, getClientArguments, getClientArguments, getClientArguments, getErrorPage, getJsonClient, getLocalizedError, getLocalizedLocalizable, getLocalizedStatusable, getPushClientArguments, getRealAuthId, getRealErrorPage, getRealPeigTypePicture, getRealStatus, getResult, getResultNoLFCheck, getRootRedirect, getServletContext, getSimpleClient, getUrl, getUrl, getUrl, getVerificationResult, getVerifyMessageResult, getWebResult, isJson, processWebError, removeErrorFromSession, setErrorToRequest, setServletContext
-
Constructor Details
-
WebPlatformController
public WebPlatformController()
-
-
Method Details
-
authenticatePage
@RequestMapping("authenticatePage") public void authenticatePage(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws AducidWebExceptionForwards user to /aducid-resources/genericOperation.jsp to start authenticate operation.
- Parameters:
httpRequest
- HTTP requesthttpResponse
- HTTP response- Throws:
AducidWebException
- when error occurs during web controller call
-
logoutPage
@RequestMapping(value="logoutPage", method=GET) public void logoutPage(@RequestParam(required=false) java.lang.String id, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws AducidWebExceptionForwards user to /aducid-resources/logout.jsp.
- Parameters:
id
- identifierhttpRequest
- HTTP requesthttpResponse
- HTTP response- Throws:
AducidWebException
- when error occurs during web controller call
-
errorPage
@RequestMapping(value="errorPage", method=GET) public void errorPage(@RequestParam(required=false) java.lang.String id, javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws AducidWebExceptionForwards user to /aducid-resources/error.jsp.
- Parameters:
id
- identifierhttpRequest
- HTTP requesthttpResponse
- HTTP response- Throws:
AducidWebException
- when error occurs during web controller call
-
guiJson
@RequestMapping("resources/gui.json") public org.springframework.http.ResponseEntity<byte[]> guiJson(java.util.Locale locale) throws AducidWebExceptionReturns JSON file to localize web GUI.
- Parameters:
locale
- locale- Returns:
- JSON file
- Throws:
AducidWebException
- when error occurs during web controller call
-
getGuiJsonAsMap
protected java.util.Map<java.lang.String,java.lang.String> getGuiJsonAsMap(java.util.Locale locale) throws AducidWebExceptionReturns JSON file to localize web GUI as map.
- Parameters:
locale
- locale- Returns:
- JSON file as map
- Throws:
AducidWebException
- when error occurs during web controller call
-