org.vraptor.view
Class RegexViewManager

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

public class RegexViewManager
extends Object
implements ViewManager

Regex based view manager.

Author:
Guilherme Silveira

Constructor Summary
RegexViewManager(String replacement)
          Instantiates the regex view manager with this replacement string.
 
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 logicRequest, String url)
          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

RegexViewManager

public RegexViewManager(String replacement)
Instantiates the regex view manager with this replacement string.

Parameters:
replacement - the replacement string
Method Detail

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

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

redirect

public void redirect(LogicRequest logicRequest,
                     String url)
              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.