public class DefaultLogicResult extends java.lang.Object implements LogicResult
Constructor and Description |
---|
DefaultLogicResult(Proxifier proxifier,
Router router,
MutableRequest request,
javax.servlet.http.HttpServletResponse response,
Container container,
PathResolver resolver,
TypeNameExtractor extractor,
FlashScope flash,
MethodInfo methodInfo) |
Modifier and Type | Method and Description |
---|---|
<T> T |
forwardTo(java.lang.Class<T> type)
This implementation don't actually use request dispatcher for the
forwarding.
|
<T> T |
redirectTo(java.lang.Class<T> type)
Returns an instance of that (pre-registered) logic.
|
public DefaultLogicResult(Proxifier proxifier, Router router, MutableRequest request, javax.servlet.http.HttpServletResponse response, Container container, PathResolver resolver, TypeNameExtractor extractor, FlashScope flash, MethodInfo methodInfo)
public <T> T forwardTo(java.lang.Class<T> type)
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.