org.vraptor.view
Class RemoteViewManager

java.lang.Object
  extended by org.vraptor.view.RemoteViewManager
All Implemented Interfaces:
ViewManager

public class RemoteViewManager
extends Object
implements ViewManager

If it is a remote vie request, like JSON or XML request, render it. If not, delegates to the internal manager.

Version:
2.2.1
Author:
Paulo Silveira

Constructor Summary
RemoteViewManager(ViewManager viewManager, RemoteView view)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteViewManager

public RemoteViewManager(ViewManager viewManager,
                         RemoteView view)
Method Detail

directForward

public void directForward(LogicRequest logicRequest,
                          String result,
                          String forwardUrl)
                   throws ViewException
Description copied from interface: ViewManager
Directly forwards to the selected forward url.

Specified by:
directForward in interface ViewManager
Throws:
ViewException

forward

public void forward(LogicRequest logicRequest,
                    String result)
             throws ViewException
Description copied from interface: ViewManager
Forwards the user based on some specific result

Specified by:
forward in interface ViewManager
Throws:
ViewException

redirect

public void redirect(LogicRequest request,
                     String result)
              throws ViewException
Description copied from interface: ViewManager
Sends a client redirect response.

Specified by:
redirect in interface ViewManager
Throws:
ViewException


Copyright © 2004-2008 VRaptor. All Rights Reserved.