private Context preInvoke(Request request, Response response) throws IOException, ServletException { // Select the Context to be used for this Request Context context = request.getContext(); if (context == null) { // BEGIN S1AS 4878272 ((HttpServletResponse) response.getResponse()).sendError (HttpServletResponse.SC_INTERNAL_SERVER_ERROR); response.setDetailMessage(rb.getString(LogFacade.NO_CONTEXT_TO_PROCESS)); // END S1AS 4878272 return null; } // Bind the context CL to the current thread if( context.getLoader() != null ) { // Not started - it should check for availability first // This should eventually move to Engine, it's generic. Thread.currentThread().setContextClassLoader (context.getLoader().getClassLoader()); } // START GlassFish Issue 1057 // Update the session last access time for our session (if any) HttpServletRequest hreq = (HttpServletRequest) request.getRequest(); hreq.getSession(false); // END GlassFish Issue 1057 context.fireRequestInitializedEvent(hreq); return context; }
Realm realm = request.getContext().getRealm(); if (realm == null) {
return wrap(request.getContext().getServletContext() .getAttribute(fieldInfo.value)); case FieldInfo.X_SERVLET_REQUEST:
Context context = request.getContext(); if (context != null) { context.fireRequestDestroyedEvent(hreq);
Context context = request.getContext(); if (context == null) return;
hres.setStatus(statusCode); ServletContext servletContext = request.getContext().getServletContext(); ApplicationDispatcher dispatcher = (ApplicationDispatcher) servletContext.getRequestDispatcher(errorPage.getLocation());
Context context = request.getContext(); if (context == null) return;
request.getContext().getServletContext(); ApplicationDispatcher dispatcher = (ApplicationDispatcher) servletContext.getRequestDispatcher(errorPage.getLocation());
public void postInvoke(Request request, Response response) throws IOException, ServletException{ Context context = request.getContext(); if (context == null) { ((HttpServletResponse) response.getResponse()).sendError
Context context = request.getContext(); if (context == null) { ((HttpServletResponse) response.getResponse()).sendError