Spring Framework

Spring Projects

Spring Project 1

AbstractController in Spring MVC
Previous Home Next

The AbstractController provide the facility to abstract base controller. This controller provide the facility to caching headers and the enabling or disabling of supported method for example get and post. this controller also implement the Controller interface, it is also contain the Template method design pattern.

Syntax:

 public abstract class AbstractController
extends WebContentGenerator
implements Controller

There are following method of AbstractController:

setSynchronizeOnSession():

public final void setSynchronizeOnSession
(boolean synchronizeOnSession);

isSynchronizeOnSession():

public final boolean isSynchronizeOnSession();

 

handleRequest():

public final ModelAndView handleRequest
(HttpServletRequest request,HttpServletResponse response)
throws Exception

handleRequestInternal():

FONT COLOR="#0000ff">protected abstract ModelAndView handleRequestInternal
(HttpServletRequest request,HttpServletResponse response)
throws Exception 

Example of AbstractController in Spring MVC

Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: