org.seasar.cubby.action
クラス SendError

java.lang.Object
  上位を拡張 org.seasar.cubby.action.SendError
すべての実装されたインタフェース:
ActionResult

public class SendError
extends Object
implements ActionResult

エラーの応答を返すことを示す ActionResult です。

アクションメソッドの戻り値としてこのインスタンスを指定すると、エラーの応答を返します。

作成者:
baba

コンストラクタの概要
SendError(int statusCode)
          インスタンスを生成します。
SendError(int statusCode, String message)
          インスタンスを生成します。
 
メソッドの概要
 void execute(ActionContext actionContext, HttpServletRequest request, HttpServletResponse response)
          処理を実行します。
 String getMessage()
          メッセージを取得します。
 int getStatusCode()
          ステータスコードを取得します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SendError

public SendError(int statusCode)
インスタンスを生成します。

パラメータ:
statusCode - ステータスコード
関連項目:
HttpServletResponse.sendError(int)

SendError

public SendError(int statusCode,
                 String message)
インスタンスを生成します。

パラメータ:
statusCode - ステータスコード
message - メッセージ
関連項目:
HttpServletResponse.sendError(int, String)
メソッドの詳細

execute

public void execute(ActionContext actionContext,
                    HttpServletRequest request,
                    HttpServletResponse response)
             throws Exception
処理を実行します。

定義:
インタフェース ActionResult 内の execute
パラメータ:
actionContext - アクションコンテキスト
request - 要求
response - 応答
例外:
Exception

getStatusCode

public int getStatusCode()
ステータスコードを取得します。

戻り値:
ステータスコード
導入されたバージョン:
2.0.2

getMessage

public String getMessage()
メッセージを取得します。

戻り値:
メッセージ
導入されたバージョン:
2.0.2


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