jrouter.servlet.result
类 ServletResult

java.lang.Object
  继承者 jrouter.servlet.result.ServletResult

public class ServletResult
extends Object

Result for http servlet, include "forward" and "redirect".


字段摘要
static String ACTION_FORWARD
          "action_forward" symbol.
static String FORWARD
          "forward" symbol.
static String REDIRECT
          "redirect" symbol.
 
构造方法摘要
ServletResult()
           
 
方法摘要
static Object actionForward(ServletActionInvocation invocation)
          Action结果直接调用映射的Action,类似forward结果类型。
static void forward(ServletActionInvocation invocation)
           
static void redirect(ServletActionInvocation invocation)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

ACTION_FORWARD

public static final String ACTION_FORWARD
"action_forward" symbol.

另请参见:
常量字段值

FORWARD

public static final String FORWARD
"forward" symbol.

另请参见:
常量字段值

REDIRECT

public static final String REDIRECT
"redirect" symbol.

另请参见:
常量字段值
构造方法详细信息

ServletResult

public ServletResult()
方法详细信息

actionForward

@ResultType(type="action_forward")
public static Object actionForward(ServletActionInvocation invocation)
Action结果直接调用映射的Action,类似forward结果类型。 forward可多次关联调用,需自行判断循环调用。

参数:
invocation - Action运行时上下文。
返回:
返回forward后的调用结果。
另请参见:
jrouter.result.DefaultResult#actionForward(jrouter.ActionInvocation)

forward

@ResultType(type="forward")
public static void forward(ServletActionInvocation invocation)
                    throws IOException,
                           javax.servlet.ServletException
抛出:
IOException
javax.servlet.ServletException
另请参见:
RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)

redirect

@ResultType(type="redirect")
public static void redirect(ServletActionInvocation invocation)
                     throws IOException
抛出:
IOException
另请参见:
HttpServletResponse.sendRedirect(java.lang.String)


Copyright © 2017. All rights reserved.