Examples of ConversationContextManager


Examples of com.github.overengineer.scope.conversation.context.ConversationContextManager

     * {@link ConversationProcessor#processConversations(ConversationAdapter)} and
     * passes in a {@link SpringConversationAdapter}.
     */
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        ConversationContextManager contextManager = conversationContextManagerProvider.getManager(request);
        ConversationAdapter adapter = new SpringConversationAdapter(request, (HandlerMethod) handler, contextManager);
        conversationProcessor.processConversations(adapter);
        return true;
    }
View Full Code Here

Examples of com.github.overengineer.scope.conversation.context.ConversationContextManager

        try {

            ActionContext actionContext = invocation.getInvocationContext();
            HttpServletRequest request = (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
            ConversationContextManager contextManager = contextManagerProvider.getManager(request);
            final ConversationAdapter adapter = new StrutsConversationAdapter(invocation, contextManager);

            processor.processConversations(adapter);

            invocation.addPreResultListener(new PreResultListener() {
View Full Code Here

Examples of com.github.overengineer.scope.conversation.context.ConversationContextManager

     * {@inheritDoc}
     */
    public void prepare() {
        ActionContext actionContext = ActionContext.getContext();
        HttpServletRequest request = (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
        ConversationContextManager contextManager = scopeContainer.get(JeeConversationContextManagerProvider.class).getManager(request);
        try {
            scopeContainer.get(ConversationProcessor.class).processConversations(new StrutsConversationAdapter(actionContext.getActionInvocation(), contextManager));
            Map<String, Map<String, String>> stackItem = new HashMap<String, Map<String, String>>();
            stackItem.put(StrutsScopeConstants.CONVERSATION_ID_MAP_STACK_KEY, ConversationAdapter.getAdapter().getViewContext());
            actionContext.getValueStack().push(stackItem);
View Full Code Here

Examples of com.google.code.rees.scope.conversation.context.ConversationContextManager

    @Override
    public ConversationAdapter createConversationAdapter() {
        ActionContext actionContext = ActionContext.getContext();
        HttpServletRequest request = (HttpServletRequest) actionContext
                .get(StrutsStatics.HTTP_REQUEST);
        ConversationContextManager contextManager = conversationContextManagerFactory
                .getManager(request);
        ActionInvocation invocation = actionContext.getActionInvocation();
        return new StrutsConversationAdapter(invocation, contextManager);
    }
View Full Code Here

Examples of com.google.code.rees.scope.conversation.context.ConversationContextManager

     */
    @Override
    public String intercept(ActionInvocation invocation) throws Exception {
     
      HttpServletRequest request = (HttpServletRequest) invocation.getInvocationContext().get(StrutsStatics.HTTP_REQUEST);
      ConversationContextManager contextManager = this.conversationContextManagerProvider.getManager(request);
     
      try {
       
        this.conversationProcessor.processConversations(new StrutsConversationAdapter(invocation, contextManager));
       
View Full Code Here

Examples of com.google.code.rees.scope.conversation.context.ConversationContextManager

     * passes in a {@link SpringConversationAdapter}.
     */
    @Override
    public boolean preHandle(HttpServletRequest request,
            HttpServletResponse response, Object handler) throws Exception {
        ConversationContextManager contextManager = conversationContextManagerFactory
                .getManager(request);
        ConversationAdapter adapter = new SpringConversationAdapter(request,
                (HandlerMethod) handler, contextManager);
        conversationManager.processConversations(adapter);
        return true;
View Full Code Here

Examples of com.google.code.rees.scope.conversation.context.ConversationContextManager

     * {@link ConversationManager#processConversations(ConversationAdapter)} and
     * passes in a {@link SpringConversationAdapter}.
     */
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        ConversationContextManager contextManager = conversationContextManagerFactory.getManager(request);
        ConversationAdapter adapter = new SpringConversationAdapter(request, (HandlerMethod) handler, contextManager);
        conversationManager.processConversations(adapter);
        return true;
    }
View Full Code Here

Examples of com.google.code.rees.scope.conversation.context.ConversationContextManager

    public String intercept(ActionInvocation invocation) throws Exception {
     
      try {
       
        HttpServletRequest request = (HttpServletRequest) invocation.getInvocationContext().get(StrutsStatics.HTTP_REQUEST);
          ConversationContextManager contextManager = this.conversationContextManagerProvider.getManager(request);
          final ConversationAdapter adapter = new StrutsConversationAdapter(invocation, contextManager);
       
        this.conversationProcessor.processConversations(adapter);
       
        invocation.addPreResultListener(new PreResultListener() {
View Full Code Here

Examples of com.google.code.rees.scope.conversation.context.ConversationContextManager

     * {@inheritDoc}
     */
    public void prepare() {
      ActionContext actionContext = ActionContext.getContext();
      HttpServletRequest request = (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
      ConversationContextManager contextManager = this.conversationContextManagerProvider.getManager(request);
        try {
      this.conversationProcessor.processConversations(new StrutsConversationAdapter(actionContext.getActionInvocation(), contextManager));
      Map<String, Map<String, String>> stackItem = new HashMap<String, Map<String, String>>();
          stackItem.put(StrutsScopeConstants.CONVERSATION_ID_MAP_STACK_KEY, ConversationAdapter.getAdapter().getViewContext());
          actionContext.getValueStack().push(stackItem);
View Full Code Here

Examples of com.google.code.rees.scope.conversation.context.ConversationContextManager

    public String intercept(ActionInvocation invocation) throws Exception {
     
      try {
       
        HttpServletRequest request = (HttpServletRequest) invocation.getInvocationContext().get(StrutsStatics.HTTP_REQUEST);
          ConversationContextManager contextManager = contextManagerProvider.getManager(request);
          final ConversationAdapter adapter = new StrutsConversationAdapter(invocation, contextManager);
       
        processor.processConversations(adapter);
       
        invocation.addPreResultListener(new PreResultListener() {
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.