Package org.springframework.webflow.core

Examples of org.springframework.webflow.core.FlowException


    request.setPathInfo("/foo");
    request.setRequestURI("/springtravel/app/foo");
    request.setMethod("GET");
    request.addParameter("execution", "12345");
    executor.resumeExecution("12345", context);
    FlowException flowException = new NoSuchFlowExecutionException(new MockFlowExecutionKey("12345"), null);
    EasyMock.expectLastCall().andThrow(flowException);
    EasyMock.replay(new Object[] { executor });
    ModelAndView mv = controller.handleRequest(request, response);
    assertNull(mv);
    assertEquals("/springtravel/app/foo", response.getRedirectedUrl());
View Full Code Here


    assertEquals("/springtravel/app/foo?bar=baz", response.getRedirectedUrl());
    EasyMock.verify(new Object[] { executor });
  }

  public void testHandleFlowExceptionCustomFlowHandler() throws Exception {
    final FlowException flowException = new FlowException("Error") {
    };

    controller.registerFlowHandler(new FlowHandler() {
      public String getFlowId() {
        return "foo";
View Full Code Here

  public ModelAndView handleRender(RenderRequest request, RenderResponse response, Object handler) throws Exception {
    FlowHandler flowHandler = (FlowHandler) handler;
    checkAndPrepare(request, response);
    populateConveniencePortletProperties(request);
    FlowException e = clearActionRequestFlowException(request, response, flowHandler);
    if (e != null) {
      return handleException(e, flowHandler, request, response);
    }
    String flowExecutionKey = flowUrlHandler.getFlowExecutionKey(request);
    if (flowExecutionKey != null) {
View Full Code Here

  private FlowException clearActionRequestFlowException(RenderRequest request, RenderResponse response,
      FlowHandler flowHandler) {
    PortletSession session = request.getPortletSession(false);
    if (session != null) {
      FlowException e = (FlowException) session.getAttribute(ACTION_REQUEST_FLOW_EXCEPTION_ATTRIBUTE);
      if (e != null) {
        session.removeAttribute(ACTION_REQUEST_FLOW_EXCEPTION_ATTRIBUTE);
        return e;
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.core.FlowException

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.