org.seasar.cubby.util
クラス ActionUtils

java.lang.Object
  上位を拡張 org.seasar.cubby.util.ActionUtils

public class ActionUtils
extends Object

アクションのユーティリティクラスです。

作成者:
baba

コンストラクタの概要
ActionUtils()
           
 
メソッドの概要
static ActionContext actionContext()
          アクションコンテキストを取得します。
static ActionContext actionContext(ServletRequest request)
          アクションコンテキストを取得します。
static boolean isActionClass(Class<?> clazz)
          指定されたクラスがアクションクラスかを示します。
static boolean isActionMethod(Method method)
          指定されたメソッドがアクションメソッドかを示します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ActionUtils

public ActionUtils()
メソッドの詳細

actionContext

public static ActionContext actionContext()
アクションコンテキストを取得します。

実行中のスレッドに対応する要求の属性からオブジェクトを取得します。

戻り値:
アクションコンテキスト

actionContext

public static ActionContext actionContext(ServletRequest request)
アクションコンテキストを取得します。

指定された要求の属性からオブジェクトを取得します。

パラメータ:
request - 要求
戻り値:
アクションコンテキスト

isActionClass

public static boolean isActionClass(Class<?> clazz)
指定されたクラスがアクションクラスかを示します。

アクションクラスは以下のいずれかの条件を満たす必要があります。

パラメータ:
clazz - クラス
戻り値:
指定されたクラスがアクションクラスの場合は true、そうでない場合は false

isActionMethod

public static boolean isActionMethod(Method method)
指定されたメソッドがアクションメソッドかを示します。

アクションメソッドは以下の条件を満たす必要があります。

パラメータ:
method - メソッド
戻り値:
指定されたメソッドがアクションメソッドの場合は true、そうでない場合は false


Copyright © 2006-2010 The Seasar Foundation. All Rights Reserved.