Java Magazine, Nov/Dec 2017
ORACLE COM JAVAMAGAZINE NOVEMBER DECEMBER 2017 22 java ee 8 In addition ServletContext gets a few new methods The addJspFile method adds the servlet with the given JSP file to the servlet context The session timeout and the default request character encoding for the current servlet context get mutator and accessor methods Java SE 8 is now the minimum version with which servlet containers must be built With this change there has been an upgrade to Java 8 features such as the addition of default methods to Listener interfaces The HttpServletRequestWrapper isRequestedSessionIdFromUrl method has been deprecated and there has been some modification and clarification to the corresponding Javadoc with regard to various methods and XML configurations Spring Framework 50 Spring Framework version 50 which has just been released boasts HTTP 2 support natively with Tomcat Jetty and Undertow Full support for Servlet 40 is expected in Spring Framework 51 Nevertheless the framework fully supports Server Pushs capabilities Conclusion Two headline features Server Push and the Servlet Mapping API are welcome additions to the Servlet API Especially welcome is Server Pushs seamless integration into the JSF API which makes the adoption of performance enhancing HTTP 2 features possible without any code changes article Alex Theedom @ readlearncode is an instructor at LinkedIn Learning He is the author of Java EE 8 Only Whats New Leanpub com and coauthor of Professional Java EE Design Patterns Wrox Press 2015 He blogs profusely at readlearncode com about Java EE When hes not in front of the computer screen you can often find him presenting at conferences on Java EE related topics
You must have JavaScript enabled to view digital editions.