Package com.github.overengineer.scope.conversation.context

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


        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

     * {@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

TOP

Related Classes of com.github.overengineer.scope.conversation.context.ConversationContextManager

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.