Request Headers And Listeners
- Using the HttpServletRequest interface write code to retrieve HTTP request header information.
- Using request listeners, write code to respond to an event when an object is added to a request.
- Write code to set the content-type of the response.
- Write code to manipulate content of response headers.
- Know difference between ServletOutputStream and Writer objects.
- Write servlet code to create a request dispatcher and to forward or include the target resource.
- Know the difference between ServletRequest.getRequestDispatcher() and ServletContext.getRequestDispatcher() methods.
- Be able to understand one servletConfig object per servlet, so it is used for servlet specific initialization parameters.
- Write code to access Servlet Context with the help of Servlet Config.
- Using Servlet listeners, write code to respond to an event when Servlet Context is created or an object is added to a Servlet Context.
- Know that session object is not thread safe.
- Using session listeners, write code to respond to an event when session is created or an object is added to a session.
- Write code to respond to an event when a session object migrates from one JVM to another.i.e. for session activation and passivation.
- Know the definition of session migration and session replication.
- Be able to understand the format and purpose of a cookie.
- Write simple code to use cookie for session tracking.
- Be able to understand what a filter is and why it is used.
- Write simple code for logging and auditing-tracking users of a web application.
Not Covered:
- Authentication-Blocking requests based on user identity.
- Image conversion-Scaling maps, and so on.
- Altering original response by use of wrappers.
- Configure the web.xml deployment descriptor correctly for a servlet with proper placement of servlet init parameters, listeners, distributed and filter related entries.