Package org.jboss.seam.servlet

Examples of org.jboss.seam.servlet.ServletRequestSessionMap


     
   }
  
   protected void endSeamContexts(HttpServletRequest request)
   {
      Manager.instance().endRequest( new ServletRequestSessionMap(request)  );
      ServletLifecycle.endRequest(request);
   }
View Full Code Here


               element.addTextNode(conversationId);
               smc.getMessage().saveChanges();
            }
         }
        
         Manager.instance().endRequest( new ServletRequestSessionMap(request) );
        
         return true;
      }
      catch (SOAPException ex)
      {
View Full Code Here

         }
      }
     
      log.debug( ">>> Begin web request" );
      Contexts.eventContext.set( new EventContext( new ServletRequestMap(request) ) );
      Contexts.sessionContext.set( new SessionContext( new ServletRequestSessionMap(request) ) );
      Contexts.applicationContext.set(new ApplicationContext( new ServletApplicationMap(ctx) ) );
      Contexts.conversationContext.set(null); //in case endRequest() was never called
   }
View Full Code Here

   public static void beginReinitialization(HttpServletRequest request,ServletContext servletContext)
   {
      log.debug(">>> Begin re-initialization");
      Contexts.applicationContext.set( new ApplicationContext( new ServletApplicationMap(servletContext) ) );
      Contexts.eventContext.set( new BasicContext(ScopeType.EVENT) );
      Contexts.sessionContext.set( new SessionContext( new ServletRequestSessionMap(request) ) );
      Contexts.conversationContext.set( new BasicContext(ScopeType.CONVERSATION) );
   }
View Full Code Here

      Lifecycle.endSession( new ServletSessionMap(session) , new ServletApplicationMap(session.getServletContext()));
   }
  
   public static void resumeConversation(HttpServletRequest request)
   {
      ServerConversationContext conversationContext = new ServerConversationContext( new ServletRequestSessionMap(request) );
      Contexts.conversationContext.set(conversationContext);
      Contexts.businessProcessContext.set( new BusinessProcessContext() );
      conversationContext.unflush();
   }
View Full Code Here

  
   private void processBasicAuth(HttpServletRequest request,
            HttpServletResponse response, FilterChain chain)
      throws IOException, ServletException
   {
      Context ctx = new SessionContext( new ServletRequestSessionMap(request) );
      Identity identity = (Identity) ctx.get(Identity.class);

      if (identity == null)
      {
         throw new ServletException("Identity not found - please ensure that the Identity component is created on startup.");
View Full Code Here

   private void processDigestAuth(HttpServletRequest request,
            HttpServletResponse response, FilterChain chain)
      throws IOException, ServletException
   {
      Context ctx = new SessionContext( new ServletRequestSessionMap(request) );
      Identity identity = (Identity) ctx.get(Identity.class);
     
      if (identity == null)
      {
         throw new ServletException("Identity not found - please ensure that the Identity component is created on startup.");
View Full Code Here

               element.addTextNode(conversationId);
               smc.getMessage().saveChanges();              
            }           
         }
        
         Manager.instance().endRequest( new ServletRequestSessionMap(request) );
        
         return true;
      }
      catch (SOAPException ex)
      {
View Full Code Here

         }
      }
     
      log.debug(">>> Begin web request");
      Contexts.eventContext.set(new EventContext(new ServletRequestMap(request)));
      Contexts.sessionContext.set(new SessionContext(new ServletRequestSessionMap(request)));
      Contexts.applicationContext.set(new ApplicationContext( new ServletApplicationMap(ctx) ));
      Contexts.conversationContext.set(null); // in case endRequest() was never called
   }
View Full Code Here

   public static void beginReinitialization(HttpServletRequest request,ServletContext servletContext)
   {
      log.debug(">>> Begin re-initialization");
      Contexts.applicationContext.set( new ApplicationContext( new ServletApplicationMap(servletContext) ) );
      Contexts.eventContext.set( new BasicContext(ScopeType.EVENT) );
      Contexts.sessionContext.set( new SessionContext( new ServletRequestSessionMap(request) ) );
      Contexts.conversationContext.set( new BasicContext(ScopeType.CONVERSATION) );
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.servlet.ServletRequestSessionMap

Copyright © 2018 www.massapicom. 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.