|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.cubby.action.SendError
public class SendError
エラーの応答を返すことを示す ActionResult
です。
アクションメソッドの戻り値としてこのインスタンスを指定すると、エラーの応答を返します。
コンストラクタの概要 | |
---|---|
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 |
コンストラクタの詳細 |
---|
public SendError(int statusCode)
statusCode
- ステータスコードHttpServletResponse.sendError(int)
public SendError(int statusCode, String message)
statusCode
- ステータスコードmessage
- メッセージHttpServletResponse.sendError(int, String)
メソッドの詳細 |
---|
public void execute(ActionContext actionContext, HttpServletRequest request, HttpServletResponse response) throws Exception
ActionResult
内の execute
actionContext
- アクションコンテキストrequest
- 要求response
- 応答
Exception
public int getStatusCode()
public String getMessage()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |