public class MockedLogic extends java.lang.Object implements LogicResult
Constructor and Description |
---|
MockedLogic() |
Modifier and Type | Method and Description |
---|---|
<T> T |
forwardTo(java.lang.Class<T> type)
Returns an instance of the given (pre-registered) logic.
|
<T> T |
redirectTo(java.lang.Class<T> type)
Returns an instance of that (pre-registered) logic.
|
public <T> T forwardTo(java.lang.Class<T> type)
LogicResult
Returns an instance of the given (pre-registered) logic.
Any method called in the returned instance will cause a server side redirect (forward) to the called action.
forwardTo
in interface LogicResult
public <T> T redirectTo(java.lang.Class<T> type)
LogicResult
Returns an instance of that (pre-registered) logic.
Any method called in the returned instance will cause a client side redirect to the called action, with the given parameters as HTTP parameters.
redirectTo
in interface LogicResult
Copyright © 2013 Caelum. All Rights Reserved.