Summary
Our Java web interface is now complete—we have created a fully functional request handling layer that is optimized for Ext JS 4 clients. The HTTP client-accessible URLs are mapped to the request-handling classes through the @RequestMapping
annotations at the class and method levels. Each handler method interacts with the service layer through well-defined interfaces and processes the Result
data transfer objects before returning JSON data in the HTTP response. We have configured the Spring Web MVC container with Java configuration classes and implemented a Spring interceptor to check whether a user has been authenticated.
In Chapter 8, Running 3T on GlassFish, we will complete our Spring configuration and deploy the 3T application on the GlassFish 4 server. Each layer in our application stack will then be ready to play its part in serving the Ext JS 4 client requests.