Introduction When we implement a java servlet web application we face the problem of choosing in which scope to put information in, depending on the needs. In the normal scenarios we have to cope essentially with Context (i.e. ServletContext), Session and Request scopes. A slightly different requirement comes out when one wants to store some object or information in the … [Read more...] about Thread scope and ThreadLocal
How to modify the servlet request
Introduction Dealing with http web frameworks, one day or the other one has to cope requirements that go beyond the standard features offered by the chosen platform. A common issue would be to change the request submitted by the client or the response content returned to it on the fly. Java Servlet technology deals with these issues basically with servlet filters and some … [Read more...] about How to modify the servlet request
How to transform the servlet response content
Introduction In the previous post How to modify the servlet request we explained how to change the servlet request on the fly, using the servlet filter mechanism and the class HttpServletResponseWrapper. In the following paragraphs we are going to show how to change the response content just before it is sent back to the client. How to tranform the http response content We … [Read more...] about How to transform the servlet response content
Java 8 new main features and Java Core evolution
Current IT Scenario The current IT market is characterized by a fast change. Many different issues are bringing great complexity. Among them we can mention the need for multi-tenancy and cloud platforms. These new paradigms require more sophisticated instruments to implement solutions at an effective production pace. Some issues in the software lifecycle must be dealt with … [Read more...] about Java 8 new main features and Java Core evolution
Dynamically Securing Method Execution with Spring Security
Preface Spring Security provides a robust support for securing Spring based applications but it fails in some way when it comes to design dynamically configurable security, especially regarding dynamic configurability of java methods access. How we can overcome these limitations? Introduction When we want to secure an application, we must define access policies to its … [Read more...] about Dynamically Securing Method Execution with Spring Security