use of javax.servlet.ServletRequestEvent in project tomee by apache.
the class HttpRequestImpl method init.
public void init() {
if (begin != null && getAttribute("openejb_requestInitialized") == null) {
// if called again we loose the request scope
setAttribute("openejb_requestInitialized", "ok");
begin.requestInitialized(new ServletRequestEvent(getServletContext(), this));
}
listeners = LightweightWebAppBuilderListenerExtractor.findByTypeForContext(contextPath, ServletRequestListener.class);
if (!listeners.isEmpty()) {
final ServletRequestEvent event = new ServletRequestEvent(getServletContext(), this);
for (final ServletRequestListener listener : listeners) {
listener.requestInitialized(event);
}
}
}
Aggregations