Examples of requestInitialized()


Examples of io.undertow.servlet.core.ApplicationListeners.requestInitialized()

       
        when(this.deployment.getApplicationListeners()).thenReturn(listeners);
       
        this.context.addRequestListener(listener);
       
        listeners.requestInitialized(request);
       
        verify(listener).requestInitialized(event.capture());
       
        assertSame(request, event.getValue().getServletRequest());
        assertSame(context, event.getValue().getServletContext());
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                    continue;
                ServletRequestListener listener =
                    (ServletRequestListener) instances[i];

                try {
                    listener.requestInitialized(event);
                } catch (Throwable t) {
                    ExceptionUtils.handleThrowable(t);
                    getLogger().error(sm.getString(
                            "standardContext.requestListener.requestInit",
                            instances[i].getClass().getName()), t);
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                    continue;
                ServletRequestListener listener =
                    (ServletRequestListener) instances[i];

                try {
                    listener.requestInitialized(event);
                } catch (Throwable t) {
                    ExceptionUtils.handleThrowable(t);
                    getLogger().error(sm.getString(
                            "standardContext.requestListener.requestInit",
                            instances[i].getClass().getName()), t);
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                    continue;
                ServletRequestListener listener =
                    (ServletRequestListener) instances[i];
               
                try {
                    listener.requestInitialized(event);
                } catch (Throwable t) {
                    ExceptionUtils.handleThrowable(t);
                    getLogger().error(sm.getString(
                            "standardContext.requestListener.requestInit",
                            instances[i].getClass().getName()), t);
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                request_event = new ServletRequestEvent(getServletContext(),request);
                final int s=LazyList.size(request_listeners);
                for(int i=0;i<s;i++)
                {
                    final ServletRequestListener listener = (ServletRequestListener)LazyList.get(request_listeners,i);
                    listener.requestInitialized(request_event);
                }
            }
           
            // Do the filter/handling thang
            if (servlet_holder!=null)
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                if (!(instances[i] instanceof ServletRequestListener))
                    continue;
                ServletRequestListener listener =
                    (ServletRequestListener) instances[i];
                try {
                    listener.requestInitialized(event);
                } catch (Throwable t) {
                    container.getLogger().error(sm.getString("standardContext.requestListener.requestInit",
                                     instances[i].getClass().getName()), t);
                    ServletRequest sreq = request.getRequest();
                    sreq.setAttribute(Globals.EXCEPTION_ATTR,t);
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                if (!(instances[i] instanceof ServletRequestListener))
                    continue;
                ServletRequestListener listener =
                    (ServletRequestListener) instances[i];
                try {
                    listener.requestInitialized(event);
                } catch (Throwable t) {
                    container.getLogger().error(sm.getString("standardContext.requestListener.requestInit",
                                     instances[i].getClass().getName()), t);
                    ServletRequest sreq = request.getRequest();
                    sreq.setAttribute(Globals.EXCEPTION_ATTR,t);
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

               
                try {
                    // Don't fire the listener for async requests
                    if (!DispatcherType.ASYNC.equals(
                            request.getDispatcherType())) {
                        listener.requestInitialized(event);
                    }
                } catch (Throwable t) {
                    ExceptionUtils.handleThrowable(t);
                    getLogger().error(sm.getString(
                            "standardContext.requestListener.requestInit",
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                    continue;
                ServletRequestListener listener =
                    (ServletRequestListener) instances[i];
               
                try {
                    listener.requestInitialized(event);
                } catch (Throwable t) {
                    ExceptionUtils.handleThrowable(t);
                    getLogger().error(sm.getString(
                            "standardContext.requestListener.requestInit",
                            instances[i].getClass().getName()), t);
View Full Code Here

Examples of javax.servlet.ServletRequestListener.requestInitialized()

                    continue;
                ServletRequestListener listener =
                    (ServletRequestListener) instances[i];
                try {
                    if (!request.isAsyncDispatching()) {
                        listener.requestInitialized(event);
                    }
                } catch (Throwable t) {
                    ExceptionUtils.handleThrowable(t);
                    container.getLogger().error(sm.getString("standardContext.requestListener.requestInit",
                                     instances[i].getClass().getName()), t);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.