org.vraptor
Interface LogicFlow

All Known Implementing Classes:
ConcatenateInterceptorsLogicFlow, InterceptorsLogicFlow

public interface LogicFlow

Interface for logic flow. Either the method execute or forward should be called.

Author:
Guilherme Silveira

Method Summary
 void execute()
          Executes the next interceptor or logic
 LogicRequest getLogicRequest()
          Returns the respective LogicRequest for this flow
 void redirect(String url)
          Deprecated. you should use the usual for this, like request.getRequest().getRequestDispatcher(url). forward(request.getRequest(), request.getResponse());
 

Method Detail

execute

void execute()
             throws ViewException,
                    LogicException
Executes the next interceptor or logic

Throws:
LogicException - some logic or interceptor problem
ViewException - some view problem

redirect

@Deprecated
void redirect(String url)
              throws RedirectException
Deprecated. you should use the usual for this, like request.getRequest().getRequestDispatcher(url). forward(request.getRequest(), request.getResponse());

Executes a server side redirect to this url. If a ViewException occurs it might be dangerous to try a server side forward (the end-user might get an unexpected combination of both pages).

Parameters:
component - target component
logic - target logic
Throws:
RedirectException

getLogicRequest

LogicRequest getLogicRequest()
Returns the respective LogicRequest for this flow

Returns:


Copyright © 2004-2008 VRaptor. All Rights Reserved.