Class ApplicationController


  • @Controller
    @PropertySource("classpath:application.properties")
    public class ApplicationController
    extends Object
    Controller class, responsible for mapping application requests to appropriate methods and views
    • Constructor Detail

      • ApplicationController

        public ApplicationController()
    • Method Detail

      • index

        @RequestMapping(value="/eident",
                        method=GET)
        public String index​(org.springframework.ui.ModelMap model)
        Displays landing page with content
        Parameters:
        model - Form data in key value pair
        Returns:
        String value that represents the target HTML page
      • closePopupAndGetClaims

        @RequestMapping(value="/eident/popupreturn",
                        method=GET)
        public String closePopupAndGetClaims​(javax.servlet.http.HttpServletRequest request,
                                             org.springframework.ui.ModelMap model)
                                      throws Exception
        Throws:
        Exception
      • claims

        @RequestMapping(value="/eident/return",
                        method=GET)
        public String claims​(javax.servlet.http.HttpServletRequest request,
                             org.springframework.ui.ModelMap model)
                      throws Exception
        Retrieves and displays claims (Success page)
        Parameters:
        request - HTTP request object
        model - Form data in key value pair
        Returns:
        String value that represents the target HTML page
        Throws:
        Exception - in case of any error
      • defaultErrorHandler

        @RequestMapping(value="/error",
                        method=GET)
        @ExceptionHandler(java.lang.Exception.class)
        public String defaultErrorHandler()
        Responsible for showing error page on error
        Returns:
        String value that represents the target HTML page
      • getHomeUrl

        @ModelAttribute("homeUrl")
        public String getHomeUrl()
        Returns:
        String value as a modal attribute, that represents eident home page