Examples of ServletRequestContext


Examples of org.jboss.seam.servlet.ServletRequestContext

            path = new PathLiteral(HttpServletRequest.class.cast(request).getServletPath());
            fireEvent(response, InitializedLiteral.INSTANCE, path);
            fireEvent(new HttpServletRequestContext(request, response), InitializedLiteral.INSTANCE, path);
        } else {
            fireEvent(response, InitializedLiteral.INSTANCE);
            fireEvent(new ServletRequestContext(request, response), InitializedLiteral.INSTANCE);
        }

        try {
            if (!response.isCommitted()) {
                chain.doFilter(request, response);
            }
        } finally {
            if (request instanceof HttpServletRequest) {
                fireEvent(response, DestroyedLiteral.INSTANCE, path);
                fireEvent(new HttpServletRequestContext(request, response), DestroyedLiteral.INSTANCE, path);
            } else {
                fireEvent(response, DestroyedLiteral.INSTANCE);
                fireEvent(new ServletRequestContext(request, response), DestroyedLiteral.INSTANCE);
            }
            fireEvent(new InternalServletResponseEvent(response), DestroyedLiteral.INSTANCE);
        }
    }
View Full Code Here

Examples of org.jboss.seam.servlet.ServletRequestContext

        ServletRequest req = e.getServletRequest();
        log.servletRequestInitialized(req);
        if (req instanceof HttpServletRequest) {
            requestCtx.set(new HttpServletRequestContext(req));
        } else {
            requestCtx.set(new ServletRequestContext(req));
        }
    }
View Full Code Here

Examples of org.jboss.seam.servlet.ServletRequestContext

        ServletResponse res = e.getServletResponse();
        log.servletResponseInitialized(res);
        if (res instanceof HttpServletResponse) {
            requestCtx.set(new HttpServletRequestContext(requestCtx.get().getRequest(), res));
        } else {
            requestCtx.set(new ServletRequestContext(requestCtx.get().getRequest(), res));
        }
    }
View Full Code Here

Examples of org.jboss.seam.servlet.ServletRequestContext

    protected void responseDestroyed(@Observes @Destroyed final InternalServletResponseEvent e) {
        log.servletResponseDestroyed(e.getServletResponse());
        if (requestCtx.get() instanceof HttpServletRequestContext) {
            requestCtx.set(new HttpServletRequestContext(requestCtx.get().getRequest()));
        } else {
            requestCtx.set(new ServletRequestContext(requestCtx.get().getRequest()));
        }
    }
View Full Code Here

Examples of org.jboss.ws.core.server.ServletRequestContext

      {
         res.setContentType("text/xml");
         ServletOutputStream out = res.getOutputStream();
         try
         {
            ServletRequestContext reqContext = new ServletRequestContext(context, req, res);
            handleWSDLRequest(endpoint, out, reqContext);
         }
         catch (Exception ex)
         {
            handleException(ex);
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.