net.jp.saf.sastruts.method
インタフェース HttpMethodChecker

すべてのスーパーインタフェース:
Serializable
既知の実装クラスの一覧:
HttpMethodCheckerImpl

public interface HttpMethodChecker
extends Serializable

HTTPメソッドチェックを行うインタフェースです.

作成者:
k-minemoto

フィールドの概要
static String DEFAULT_EXTENSION_HEADER_NAME
          デフォルトのHTTP実行メソッドを指定するHTTPヘッダー名
 
メソッドの概要
 CheckResult check(HttpServletRequest request, HttpMethod[] allows, ExtensionHeaderBehavior extensionHeaderBehavior)
          HTTPメソッドのチェックを行います.
 String handleError(HttpServletRequest request, HttpServletResponse response, HttpMethod[] allowed, String method)
          チェックエラー時の処理を行います.
 

フィールドの詳細

DEFAULT_EXTENSION_HEADER_NAME

static final String DEFAULT_EXTENSION_HEADER_NAME
デフォルトのHTTP実行メソッドを指定するHTTPヘッダー名

関連項目:
定数フィールド値
メソッドの詳細

check

CheckResult check(HttpServletRequest request,
                  HttpMethod[] allows,
                  ExtensionHeaderBehavior extensionHeaderBehavior)
HTTPメソッドのチェックを行います.

パラメータ:
request - HTTPリクエスト
allows - 許可されているメソッド
extensionHeaderBehavior - 拡張ヘッダーの扱い
戻り値:
チェック結果

handleError

String handleError(HttpServletRequest request,
                   HttpServletResponse response,
                   HttpMethod[] allowed,
                   String method)
チェックエラー時の処理を行います.

パラメータ:
request - HttpServletRequest
response - HttpServletResponse
allowed - 許可されているHttpMethodの配列
method - 実際に呼び出されたメソッド
戻り値:
フォワード先のパス. フォワードしない場合nullを返すこと.


Copyright © 2013 k-minemoto. All Rights Reserved.