Package org.springframework.webflow.context.servlet

Examples of org.springframework.webflow.context.servlet.ServletExternalContext


    FlowHandler flowHandler = (FlowHandler) handler;
    checkAndPrepare(request, response, false);
    String flowExecutionKey = flowUrlHandler.getFlowExecutionKey(request);
    if (flowExecutionKey != null) {
      try {
        ServletExternalContext context = createServletExternalContext(request, response);
        FlowExecutionResult result = flowExecutor.resumeExecution(flowExecutionKey, context);
        handleFlowExecutionResult(result, context, request, response, flowHandler);
      } catch (FlowException e) {
        handleFlowException(e, request, response, flowHandler);
      }
    } else {
      try {
        String flowId = getFlowId(flowHandler, request);
        MutableAttributeMap<Object> input = getInputMap(flowHandler, request);
        ServletExternalContext context = createServletExternalContext(request, response);
        FlowExecutionResult result = flowExecutor.launchExecution(flowId, input, context);
        handleFlowExecutionResult(result, context, request, response, flowHandler);
      } catch (FlowException e) {
        handleFlowException(e, request, response, flowHandler);
      }
View Full Code Here


   * @param request the current request
   * @param response the current response
   */
  protected ServletExternalContext createServletExternalContext(HttpServletRequest request,
      HttpServletResponse response) {
    ServletExternalContext context = new MvcExternalContext(getServletContext(), request, response, flowUrlHandler);
    context.setAjaxRequest(ajaxHandler.isAjaxRequest(request, response));
    return context;
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.context.servlet.ServletExternalContext

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.