Generator servlet context
When servlet is invoked it stores its environment along
with HttpRequest and HttpResponse in this context using
current thread as a key, so that later on it can be retrieved
from for example Java datasources.
Example:
GeneratorServletContext context = GeneratorServletContext.getContext();
HttpServletResponse response = context.getHttpServletResponse();
HttpServletRequest request = context.getHttpServletRequest();
HttpSession session = request.getSession();
author: Dmitry Skavish |