@Vetoed public class MockedLogic extends Object implements LogicResult
| Constructor and Description |
|---|
MockedLogic() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
forwardTo(Class<T> type)
Returns an instance of the given (pre-registered) logic.
|
<T> T |
redirectTo(Class<T> type)
Returns an instance of that (pre-registered) logic.
|
public <T> T forwardTo(Class<T> type)
LogicResultReturns 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 LogicResultT - controller typepublic <T> T redirectTo(Class<T> type)
LogicResultReturns 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 LogicResultT - controller typeCopyright © 2014 Caelum. All rights reserved.