org.vraptor.view
Interface ViewManager

All Known Implementing Classes:
OverridableViewManager, RegexViewManager, RemoteViewManager

public interface ViewManager

A view manager decides where to go after an action has been executed.

Author:
Guilherme Silveira

Method Summary
 void directForward(LogicRequest logicRequest, String result, String forwardUrl)
          Directly forwards to the selected forward url.
 void forward(LogicRequest logicRequest, String result)
          Forwards the user based on some specific result
 void redirect(LogicRequest request, String result)
          Sends a client redirect response.
 

Method Detail

forward

void forward(LogicRequest logicRequest,
             String result)
             throws ViewException
Forwards the user based on some specific result

Throws:
ViewException

directForward

void directForward(LogicRequest logicRequest,
                   String result,
                   String forwardUrl)
                   throws ViewException
Directly forwards to the selected forward url.

Throws:
ViewException

redirect

void redirect(LogicRequest request,
              String result)
              throws ViewException
Sends a client redirect response.

Throws:
ViewException


Copyright © 2004-2008 VRaptor. All Rights Reserved.